@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --paper: #f6f8f3;
  --panel: #ffffff;
  --line: #e6eadf;
  --green: #009b55;
  --green-dark: #087540;
  --red: #ef3f3f;
  --yellow: #f2c94c;
  --blue: #0877c9;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.09);

  --brand-600: #079447;
  --brand-gradient: linear-gradient(135deg, #0aa652, #008944);
  --font-family-base: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-strong: 800;
  --text-xs: 10px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-section: 22px;
  --line-tight: 1.2;
  --line-snug: 1.35;
  --line-body: 1.5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-card-compact: 15px;
  --radius-search: 17px;
  --radius-modal: 18px;
  --radius-pill: 999px;
  --border-subtle: #e4e9ef;
  --border-card: rgba(219, 226, 220, 0.88);
  --shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-card: 0 10px 28px rgba(16, 24, 40, 0.07);
  --shadow-floating: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 24px 70px rgba(15, 23, 42, 0.2);
  --focus-ring: 0 0 0 3px rgba(7, 148, 71, 0.24);
  --control-height-compact: 40px;
  --control-height-default: 44px;
  --control-height-touch: 50px;
}

/* Approved concept 3 price-selection integration. Scoped to the shopping-list drawer. */
.basket-section{width:min(796px,100vw);font-family:Inter,Arial,Helvetica,sans-serif}.basket-board{height:100%;padding:0 30px;gap:0;overflow:hidden;background:#fff}.basket-drawer-head{height:63px;min-height:63px;border-bottom:1px solid #e2e7e4}.basket-drawer-head h2{color:#101828;font-size:25px;font-weight:800}.cart-close-inline{width:32px;min-height:32px;color:#101828;font-size:27px}.basket-approved-summary{height:73px;flex:0 0 73px;margin:10px 0;display:grid;grid-template-columns:1fr 1fr;align-items:center;border:1px solid #e1e4e2;border-radius:8px}.basket-approved-summary>div{position:relative;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center}.basket-approved-summary>div+div::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:#d8ddda}.basket-approved-summary span{color:#20272d;font-size:13px;line-height:16px}.basket-approved-summary strong{margin-top:5px;color:#111820;font-size:22px;line-height:25px;font-weight:750}.basket-approved-summary>div+div strong{color:#079447;font-size:20px}.basket-summary-info{position:absolute;left:calc(50% + 65px);bottom:5px;width:18px;height:18px;padding:0;border:1px solid #8e9992;border-radius:50%;color:#647069;background:#fff;font:12px/16px Georgia}.basket-pricing-tools{height:64px;flex:0 0 64px;padding-bottom:6px}.basket-mode-switch{height:38px;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dce3df;border-radius:7px;overflow:hidden}.basket-mode-button{border:0;border-right:1px solid #e2e7e4;background:#fff;color:#52606b;font-size:12px;font-weight:550}.basket-mode-button:last-child{border-right:0}.basket-mode-button.active{color:#079447;background:#f0f8f4;box-shadow:inset 0 0 0 1px #079447}.basket-pricing-tools p{height:20px;margin:0;padding:5px 4px 0;color:#68747e;font-size:11px;line-height:15px}.basket-approved-tabs{height:50px;flex:0 0 50px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e4e8e6;border-bottom:1px solid #e4e8e6}.basket-approved-tabs button{position:relative;border:0;background:#fff;color:#67737d;font-size:15px}.basket-approved-tabs button.active{color:#079447;font-weight:650}.basket-approved-tabs button.active::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;background:#079447}.basket-networks{height:130px;flex:0 0 130px}.basket-network-title{height:45px;display:flex;align-items:center;justify-content:space-between}.basket-network-title h3{margin:0;color:#101828;font-size:14px;font-weight:650}.basket-network-title span{color:#52606b;font-size:14px}.basket-network-scroll{height:85px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(184px,1fr);overflow-x:auto;border:1px solid #dfe5e1;border-radius:3px 3px 0 0;scrollbar-width:none}.basket-network-scroll::-webkit-scrollbar{display:none}.basket-network-card{position:relative;display:grid;grid-template-columns:38px 1fr;grid-template-rows:38px 26px;align-items:center;padding:9px 12px;border:0;border-right:1px solid #d8dfdb;color:#101828;background:#fff;text-align:left}.basket-network-card.active{background:#f4f9f6}.basket-network-card.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#079447}.basket-network-card.excluded{opacity:.46;background:#f7f8f7}.basket-network-logo{grid-row:1/3;width:32px;height:32px;object-fit:contain}.basket-network-card b{font-size:13px;line-height:15px}.basket-network-card strong{font-size:16px;line-height:20px}.basket-price-table{min-height:0;flex:1 1 auto;overflow:auto;border-top:1px solid #dfe5e1}.basket-price-head{position:sticky;top:0;z-index:5;height:42px;display:grid;grid-template-columns:246px 88px repeat(3,119px) 24px;align-items:center;border-bottom:1px solid #dfe5e1;color:#5e6b75;background:#fff;font-size:11px}.basket-price-head span{text-align:center}.basket-price-head span:first-child{text-align:left}.basket-price-rows{min-width:715px}.basket-price-row{height:65px;display:grid;grid-template-columns:28px 52px 166px 88px repeat(3,119px) 24px;align-items:center;border-bottom:1px solid #e3e8e5;background:#fff}.basket-price-row .basket-row-photo{width:42px;height:52px}.basket-price-row .basket-row-main{padding-right:8px}.basket-price-row .basket-row-main strong{font-size:13px;line-height:16px}.basket-price-row .basket-row-main small{font-size:11px}.basket-price-row .basket-row-qty{width:78px;height:34px}.basket-price-cell{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0 3px;border:0;border-left:1px solid #e0e5e2;color:#2e3942;background:#fff}.basket-price-cell b{font-size:13px;line-height:16px}.basket-price-cell small{color:#738079;font-size:9px;line-height:11px}.basket-price-cell:not(:disabled):hover{background:#f4faf7}.basket-price-cell.selected{color:#079447;background:#edf8f2;box-shadow:inset 0 0 0 1px #079447}.basket-price-cell.excluded{color:#9aa39e;background:#f7f8f7;opacity:.58}.basket-price-cell:disabled{color:#a5ada8;background:#fafbfa}.basket-row-remove{border:0;color:#49555e;background:transparent;font-size:18px}.basket-approved-footer{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e1e6e3}.basket-approved-secondary{display:flex;align-items:center;gap:22px}.basket-approved-secondary button{height:40px;padding:0;border:0;color:#69757e;background:transparent;font-size:13px}.basket-approved-footer .basket-footer-action{width:240px;height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border:0;border-radius:7px;color:#fff;background:#079447;font-size:14px;font-weight:650}.basket-mode-button:focus-visible,.basket-network-card:focus-visible,.basket-price-cell:focus-visible{outline:3px solid rgba(7,148,71,.24);outline-offset:-3px}.basket-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#68747e}.basket-empty-state strong{color:#26323a;font-size:18px}
@media(max-width:796px){.basket-board{padding:0 16px}.basket-pricing-tools{overflow:hidden}.basket-mode-switch{display:flex;overflow-x:auto;scrollbar-width:none}.basket-mode-button{min-width:126px;flex:1 0 126px}.basket-pricing-tools p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.basket-network-scroll{grid-auto-columns:184px}.basket-price-head,.basket-price-rows{min-width:646px;width:646px}.basket-price-head{grid-template-columns:180px 70px repeat(3,125px) 21px}.basket-price-row{grid-template-columns:24px 42px 114px 70px repeat(3,125px) 21px}.basket-price-row .basket-row-photo{width:36px;height:46px}.basket-price-row .basket-row-main strong{font-size:12px;line-height:14px}.basket-price-row .basket-row-qty{width:64px}.basket-approved-secondary{gap:8px}.basket-approved-secondary button{width:34px;font-size:0}.basket-approved-secondary button::before{font-size:18px}.basket-approved-secondary button:nth-child(1)::before{content:"⌫"}.basket-approved-secondary button:nth-child(2)::before{content:"↓"}.basket-approved-secondary button:nth-child(3)::before{content:"↗"}.basket-approved-footer .basket-footer-action{width:min(240px,calc(100vw - 150px));padding:0 14px;font-size:13px}}

.product-load-more {
  display: contents;
}

.catalog-loading-status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 2px 0;
  padding: 9px 14px;
  border: 1px solid #dfe8d8;
  border-radius: 10px;
  background: #f7fbf3;
  color: #556171;
  font-size: 13px;
  font-weight: 800;
}

.product-load-more .catalog-loading-status,
.product-load-more .product-card-skeleton {
  opacity: 1;
  animation: none;
}

.product-grid > .catalog-loading-status,
.product-grid > .product-card-skeleton {
  opacity: 1;
  animation: none;
}

@keyframes deferred-loading-visibility {
  to {
    opacity: 1;
  }
}

.catalog-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cfe2c8;
  border-top-color: #12a85a;
  border-radius: 50%;
  animation: catalog-loading-spin 0.75s linear infinite;
}

@keyframes catalog-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-card-skeleton {
  pointer-events: none;
}

.product-card-skeleton .skeleton-box,
.product-card-skeleton .skeleton-line {
  position: relative;
  overflow: hidden;
  background: #eef4ea;
}

.product-card-skeleton .skeleton-box::after,
.product-card-skeleton .skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(221, 235, 216, 0.42), transparent);
  animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.product-card-skeleton .skeleton-box {
  min-height: 112px;
  border-radius: 14px;
}

.product-card-skeleton .skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.product-card-skeleton .skeleton-title {
  width: 84%;
  height: 18px;
}

.product-card-skeleton .skeleton-short {
  width: 52%;
}

.product-card-skeleton .skeleton-badge {
  width: 42%;
  height: 22px;
}

.product-card-skeleton .skeleton-price {
  width: 64%;
  height: 26px;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-loading-spinner,
  .product-card-skeleton .skeleton-box::after,
  .product-card-skeleton .skeleton-line::after {
    animation: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(246, 244, 237, 0.92);
  border-bottom: 1px solid rgba(222, 219, 209, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.nav {
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav a[href="#parser"],
.nav a[href="#linkFilesSection"] {
  display: none;
}

#parser.parser-section {
  display: none !important;
}

.nav a:hover {
  color: var(--ink);
}

.ghost-button,
.primary-button,
.category-button,
.add-button,
.qty-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
}

.ghost-button {
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.primary-button,
.add-button {
  color: #fff;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 5vw;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 5vw 5vw 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead,
.basket-copy p,
.parser-steps p,
.product-card p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.search-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 640px;
  margin-top: 30px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-box {
  position: relative;
  min-width: 0;
}

.search-shell input {
  width: 100%;
  min-height: 42px;
  min-width: 0;
  border: 0;
  padding: 0 38px 0 14px;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.main-search-clear {
  position: absolute;
  top: calc(50% - 6.5px);
  right: 4px;
  display: none;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: #f3f6f1;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.main-search-clear.visible {
  display: grid;
}

.main-search-clear:hover,
.main-search-clear:focus-visible {
  color: #079447;
  background: #eaf7ef;
  outline: 0;
}

.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: -8px;
  right: -8px;
  display: none;
  max-height: var(--suggestions-available-height, calc(100dvh - 12px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 32, 27, 0.18);
}

.search-suggestions.open {
  display: grid;
  gap: 6px;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.search-suggestion:hover,
.search-suggestion:focus-visible,
.search-suggestion.active {
  border-color: rgba(35, 114, 87, 0.25);
  background: #f4faf7;
  outline: 0;
}

.search-suggestion img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 7px;
  background: #f8f7f2;
}

.suggestion-main {
  min-width: 0;
}

.suggestion-main strong,
.suggestion-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-main strong {
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.25;
}

.suggestion-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.suggestion-price {
  justify-self: end;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.search-show-all {
  justify-self: center;
  min-height: 24px;
  padding: 3px 6px 1px;
  border: 0;
  color: #087a3d;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.search-show-all:hover,
.search-show-all:focus-visible {
  color: #079447;
  text-decoration: none;
  outline: 0;
}

.primary-button {
  padding: 0 18px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.price-float {
  position: absolute;
  right: 18px;
  bottom: 21px;
  min-width: 190px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 32, 27, 0.88);
  backdrop-filter: blur(14px);
}

.price-float span,
.metric-label,
.store-total span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.price-float strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dashboard article {
  padding: 24px;
  background: #fff;
}

.dashboard .metric-label {
  color: var(--muted);
}

.dashboard strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.workspace {
  display: block;
  padding: 54px 3vw;
}

.filters,
.catalog-panel,
.basket-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filters {
  display: none;
  padding: 22px;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filters h2 {
  font-size: 22px;
}

.filters-close {
  display: none;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.category-search {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

.category-search input:focus {
  outline: 2px solid rgba(28, 122, 85, 0.18);
  border-color: #5d9b7a;
}

.category-list {
  display: grid;
  gap: 7px;
}

body.filters-open .category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

body.filters-open .category-list > .category-button,
body.filters-open .category-list > .category-empty {
  grid-column: 1 / -1;
}

.category-group {
  display: grid;
  gap: 8px;
}

.category-group summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.category-group summary::-webkit-details-marker {
  display: none;
}

.category-button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 4px 9px;
  text-align: left;
  color: var(--ink);
  background: #f8f7f2;
  border-color: var(--line);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.category-button:hover {
  transform: translateY(-1px);
  background: #f0f5ee;
  border-color: #bfd5c8;
  box-shadow: 0 8px 20px rgba(31, 61, 46, 0.08);
}

.category-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e8f2ec;
  font-size: 14px;
  line-height: 1;
  color: var(--green-dark);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.category-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.category-button:hover .category-icon {
  transform: scale(1.04);
  background: #dbece3;
}

.category-count {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--muted);
  text-align: right;
}

.category-caret {
  flex: 0 0 auto;
  color: #6b6b60;
  font-size: 13px;
  transition: transform 0.16s ease;
}

.category-group[open] .category-caret {
  transform: rotate(90deg);
}

.subcategory-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-left: 28px;
}

.subcategory-button {
  min-height: 34px;
  padding-left: 10px;
  font-size: 13px;
  background: #fff;
}

.subcategory-button:hover {
  background: #fbf8ef;
  border-color: #e1d9ca;
}

.category-button.active {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(27, 94, 67, 0.18);
}

.category-button.active .category-icon {
  color: var(--green-dark);
  background: #fff;
}

.category-button.active .category-count,
.category-button.active .category-caret {
  color: currentColor;
}

.category-button.category-image-card {
  min-height: 54px;
  padding: 8px 12px;
  color: var(--category-accent, #2384d6);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border-color: color-mix(in srgb, var(--category-accent, #2384d6) 24%, #fff);
  border-radius: 999px;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--category-accent, #2384d6) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
}

.category-button.category-image-card:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--category-accent, #2384d6) 38%, #fff);
  box-shadow:
    0 16px 32px color-mix(in srgb, var(--category-accent, #2384d6) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.category-button.category-image-card .category-name {
  gap: 10px;
}

.category-button.category-image-card .category-icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  background: transparent;
  border-radius: 999px;
}

.category-button.category-image-card .category-img {
  width: 38px;
  height: 38px;
}

.category-button.category-image-card .category-caret,
.category-button.category-image-card .category-count {
  color: color-mix(in srgb, var(--category-accent, #2384d6) 62%, #fff);
}

.category-button.category-image-card.active {
  color: var(--category-accent, #2384d6);
  background: #fff;
  border-color: color-mix(in srgb, var(--category-accent, #2384d6) 46%, #fff);
  box-shadow:
    0 18px 36px color-mix(in srgb, var(--category-accent, #2384d6) 24%, transparent),
    0 0 0 2px color-mix(in srgb, var(--category-accent, #2384d6) 12%, transparent);
}

.category-button.category-image-card.active .category-icon {
  background: transparent;
}

.category-empty {
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-nav {
  position: sticky;
  top: 72px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px -6px 20px;
  padding: 8px 6px;
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(218, 211, 199, 0.72);
}

.quick-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  color: var(--ink);
  background: #f8f7f2;
  border-color: var(--line);
  font-size: 13px;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.quick-filter:hover {
  transform: translateY(-1px);
  background: #f0f5ee;
  border-color: #bfd5c8;
  box-shadow: 0 8px 20px rgba(31, 61, 46, 0.08);
}

.quick-filter-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e8f2ec;
}

.quick-filter-icon .category-svg {
  width: 15px;
  height: 15px;
}

.quick-filter-icon .category-img {
  width: 24px;
  height: 24px;
}

.quick-filter.quick-filter-image {
  color: var(--category-accent, var(--ink));
  font-weight: 800;
}

.quick-filter.quick-filter-image .quick-filter-icon {
  color: var(--category-accent, var(--green));
  background: #fff;
}

.quick-filter-count {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  text-align: center;
}

.quick-filter.active {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(27, 94, 67, 0.18);
}

.quick-filter.active .quick-filter-icon {
  color: var(--green-dark);
  background: #fff;
}

.quick-filter.active .quick-filter-count {
  color: var(--green-dark);
  background: #fff;
}

.all-categories-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(27, 94, 67, 0.14);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.all-categories-button:hover {
  transform: translateY(-1px);
  background: #1f6d4d;
  box-shadow: 0 14px 30px rgba(27, 94, 67, 0.2);
}

.floating-categories {
  position: fixed;
  left: 22px;
  bottom: 18px;
  z-index: 35;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(24, 39, 31, 0.18);
}

.filters-backdrop {
  display: none;
}

body.filters-open {
  overflow: visible;
  position: relative;
  z-index: 2;
}

body.filters-open .filters-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(26, 33, 29, 0.32);
}

body.filters-open .filters {
  display: block;
  position: fixed;
  top: 18px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(760px, calc(100vw - 36px));
  overflow-y: auto;
  box-shadow: 0 22px 60px rgba(24, 39, 31, 0.22);
  animation: filtersPanelIn 0.18s ease-out;
}

body.filters-open .filters-close {
  display: inline-grid;
  place-items: center;
}

@keyframes filtersPanelIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 9px;
  min-height: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.product-photo {
  width: min(78%, 180px);
  justify-self: center;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ece8dd;
}

.product-meta {
  min-width: 0;
}

.product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.product-card h3 {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.18;
}

.product-card p {
  margin-bottom: 8px;
  font-size: 12px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  border-top: 1px solid var(--line);
}

.price-row:first-of-type {
  border-top: 0;
}

.store-name {
  color: var(--muted);
  font-weight: 800;
}

.store-status {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 900;
}

.store-status.lost {
  color: #a13b2f;
}

.price {
  font-weight: 900;
}

.price-cell {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.store-updated {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.best {
  color: var(--green);
}

.updated-line {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.price-chart {
  position: relative;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-chart {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-head,
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chart-head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chart-change {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.change-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 8px 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.change-pill.pyaterochka {
  color: #8f251e;
  background: #f9dfdc;
}

.change-pill.perekrestok {
  color: var(--green-dark);
  background: #dceee6;
}

.change-pill.up {
  box-shadow: inset 0 0 0 1px rgba(216, 76, 61, 0.18);
}

.change-pill.down {
  box-shadow: inset 0 0 0 1px rgba(35, 114, 87, 0.18);
}

.price-chart svg {
  display: block;
  width: 100%;
  height: 118px;
}

.chart-grid {
  stroke: #e6e2d8;
  stroke-width: 1;
}

.chart-price-label {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 850;
  pointer-events: none;
}

.chart-hover-line {
  stroke: rgba(20, 32, 27, 0.42);
  stroke-dasharray: 4 4;
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
}

.chart-hover-dot {
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
}

.chart-hover-line.visible,
.chart-hover-dot.visible {
  opacity: 1;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.chart-line.pyaterochka {
  stroke: var(--red);
}

.chart-line.perekrestok {
  stroke: var(--green);
}

.chart-line.dixy {
  stroke: var(--blue);
}

.chart-dot {
  stroke: #fff;
  stroke-width: 2;
  pointer-events: all;
}

.chart-dot.pyaterochka {
  fill: var(--red);
}

.chart-dot.perekrestok {
  fill: var(--green);
}

.chart-dot.dixy {
  fill: var(--blue);
}

.chart-date {
  fill: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  pointer-events: none;
}

.chart-hit {
  fill: transparent;
  pointer-events: all;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 180px;
  max-width: 250px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 32, 27, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 120ms ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.chart-tooltip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.chart-legend {
  margin-top: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-item.pyaterochka::before {
  background: var(--red);
}

.legend-item.perekrestok::before {
  background: var(--green);
}

.legend-item.dixy::before {
  background: var(--blue);
}

.source-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-badge.live {
  color: var(--green-dark);
  background: #dceee6;
}

.source-badge.demo {
  color: #8b6734;
  background: #f4e8c3;
}

.add-button {
  width: 100%;
  margin-top: 14px;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.basket-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 5vw;
  align-items: start;
  padding: 16px 5vw 80px;
}

.basket-board {
  padding: 22px;
  box-shadow: var(--shadow);
}

.basket-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.store-total {
  padding: 18px;
  border-radius: 8px;
  color: #fff;
}

.store-total.x5 {
  background: var(--red);
}

.store-total.perek {
  background: var(--green);
}

.store-total.perekrestok {
  background: var(--green);
}

.store-total.dixy {
  background: var(--blue);
}

.store-total strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.winner {
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e7f2ed;
  font-weight: 900;
}

.basket-items {
  display: grid;
  gap: 10px;
}

.basket-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.basket-item strong,
.basket-item span {
  display: block;
}

.basket-item span {
  color: var(--muted);
  font-size: 13px;
}

.parser-report-section {
  padding: 16px 5vw 80px;
}

.link-files-section {
  padding: 0 5vw 80px;
}

.link-file-actions,
.link-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.link-files-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.link-file-card,
.link-upload-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.link-file-card span,
.link-upload-form label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.link-file-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.link-file-card a {
  display: inline-block;
  margin-top: 3px;
  color: var(--green-dark);
  font-weight: 850;
}

.link-file-card p,
.link-upload-form p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.link-upload-form {
  display: grid;
  gap: 12px;
}

.link-upload-row input {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
}

.parser-report-list {
  display: grid;
  gap: 12px;
}

.parser-report-summary,
.parser-report-preview,
.parser-report-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.parser-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  box-shadow: var(--shadow);
}

.parser-report-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parser-report-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.parser-report-summary span,
.parser-report-preview span,
.parser-report-card span,
.report-link span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.parser-report-summary strong,
.parser-report-preview strong,
.parser-report-card strong {
  display: block;
  margin-top: 4px;
}

.report-download-button {
  min-width: 230px;
}

.parser-report-card {
  display: grid;
  gap: 12px;
}

.parser-report-card.ok {
  border-left: 4px solid var(--green);
}

.parser-report-card.lost,
.parser-report-card.blocked,
.parser-report-summary.blocked {
  border-left: 4px solid #a13b2f;
}

.report-main h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-link a,
.report-link span:last-child {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--green-dark);
  font-weight: 800;
}

.parser-report-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 34px;
  min-height: 34px;
  color: var(--ink);
  background: #f8f7f2;
  border-color: var(--line);
}

.parser-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 5vw;
  padding: 76px 5vw;
  background: #e9efe9;
}

.parser-note {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.parser-actions {
  margin-top: 18px;
}

.parser-board {
  display: grid;
  gap: 16px;
}

.parser-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-card {
  padding: 16px;
  border: 1px solid rgba(20, 32, 27, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card strong {
  margin-bottom: 6px;
}

.status-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status-card.ok {
  border-color: rgba(35, 114, 87, 0.28);
}

.status-card.blocked {
  border-color: rgba(216, 76, 61, 0.28);
}

.parser-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.parser-steps article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(20, 32, 27, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.parser-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .workspace,
  .basket-section,
  .parser-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 22px 28px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .dashboard,
  .product-grid,
  .parser-steps,
  .link-files-grid,
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard {
    margin: 0 22px;
  }

  .workspace,
  .basket-section,
  .parser-section,
  .link-files-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.filters-open .category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 18px;
  }

  .ghost-button {
    display: none;
  }

  .search-shell,
  .dashboard,
  .basket-totals,
  .parser-status,
  .parser-steps,
  .link-files-grid,
  .parser-report-summary,
  .parser-report-preview,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-photo {
    width: min(84%, 150px);
    height: auto;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 7px 0;
  }

  .price-cell {
    justify-items: start;
    text-align: left;
  }

  .store-updated {
    white-space: normal;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    padding: 8px;
    gap: 8px;
  }

  .product-title-row {
    gap: 6px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-card p {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .price,
  .store-name {
    font-size: 12px;
  }

  .catalog-nav {
    gap: 8px;
  }

  .quick-filter {
    min-height: 34px;
    gap: 6px;
    padding-right: 9px;
    font-size: 12px;
  }

  .quick-filter-icon {
    width: 22px;
    height: 22px;
  }

  .quick-filter-count {
    min-width: 20px;
    padding: 1px 5px;
    font-size: 11px;
  }

  .all-categories-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .search-suggestions {
    left: 0;
    right: 0;
  }

  .search-suggestion {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .suggestion-price {
    grid-column: 2;
    justify-self: start;
  }

  .basket-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 379px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 14px;
  }
}

/* Floating cart drawer */
.cart-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 18px 42px rgba(24, 39, 31, 0.28);
}

.cart-fab:hover {
  background: var(--green);
}

.cart-fab-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
  transform: translateX(2px);
}

.cart-fab-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.cart-fab:not(.has-items) .cart-fab-count {
  background: #6f7773;
}

.cart-backdrop {
  display: none;
}

body.cart-open {
  overflow: hidden;
  position: fixed;
  top: var(--cart-lock-top, 0);
  right: -2px;
  left: 0;
  width: 100%;
}

body.cart-open .topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

body.cart-open .cart-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(20, 32, 27, 0.42);
}

.basket-section {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(460px, calc(100vw - 28px));
  max-height: 100vh;
  padding: 0;
  background: #fff;
  box-shadow: -22px 0 60px rgba(24, 39, 31, 0.22);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

body.cart-open .basket-section {
  transform: translateX(0);
}

.basket-copy {
  position: relative;
  padding: 26px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.basket-copy h2 {
  padding-right: 44px;
}

.basket-copy p:last-child {
  margin-bottom: 0;
}

.cart-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.basket-board {
  min-height: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.basket-totals {
  grid-template-columns: 1fr;
}

.basket-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 640px) {
  .cart-fab {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }

  .floating-categories {
    left: 16px;
    bottom: 16px;
  }

  .basket-section {
    width: min(100vw, 430px);
  }
}

/* Reference redesign: light grocery comparison dashboard. */
:root {
  --green-soft: #eaf7ef;
  --orange: #f97316;
}

body {
  background:
    radial-gradient(circle at 72% 12%, rgba(194, 224, 171, 0.34), transparent 34%),
    linear-gradient(180deg, #fbfcf7 0, #f6f8f3 360px, #ffffff 100%);
  color: var(--ink);
}

.topbar {
  min-height: 68px;
  padding: 0 4.5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e8ece5;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.brand {
  min-width: 232px;
  gap: 12px;
  color: var(--green-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--green);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.12);
  font-size: 21px;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-text strong {
  font-size: 25px;
  font-weight: 950;
}

.brand-text small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.nav {
  flex: 1;
  justify-content: center;
  gap: 28px;
}

.nav a {
  position: relative;
  padding: 25px 0 24px;
  color: #202333;
  font-size: 15px;
  font-weight: 850;
}

.nav a.active,
.nav a:hover {
  color: var(--green-dark);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--green);
}

.nav a[href="#parser"] {
  display: inline-flex;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ghost-button {
  min-height: 40px;
  border-radius: 12px;
  color: #303446;
  background: #fff;
  border-color: #e8ecef;
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.04);
}

.location-button::before {
  content: "в—Џ";
  margin-right: 10px;
  color: #344054;
  font-size: 10px;
}

.login-button::before {
  content: "в—‹";
  margin-right: 9px;
  font-weight: 900;
}

.hero {
  position: relative;
  grid-template-columns: minmax(440px, 0.78fr) minmax(480px, 1fr);
  min-height: 255px;
  padding: 28px 5.7vw 16px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 74% 72%, rgba(156, 194, 118, 0.36), transparent 42%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 240, 0.92) 45%, rgba(231, 242, 220, 0.76) 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: #667085;
  text-transform: none;
  font-size: 14px;
  font-weight: 750;
}

.hero .eyebrow {
  margin-bottom: 16px;
}

h1 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 39px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.1;
}

.lead {
  max-width: 630px;
  font-size: 15px;
  line-height: 1.45;
}

.search-shell {
  grid-template-columns: 1fr 126px;
  max-width: 790px;
  margin-top: 22px;
  padding: 7px;
  border-color: #d9ded6;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.search-shell::before {
  content: "вЊ•";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #3f4658;
  font-size: 26px;
}

.search-box {
  grid-column: 1;
  margin-left: 36px;
}

.search-shell input {
  min-height: 48px;
  padding-left: 0;
  font-size: 16px;
}

.primary-button,
.add-button,
.all-categories-button {
  border-radius: 12px;
  background: linear-gradient(180deg, #03a65f 0%, #008a4d 100%);
  box-shadow: 0 8px 18px rgba(0, 155, 85, 0.22);
}

.hero-visual {
  align-self: stretch;
  min-height: 255px;
}

.hero-visual img {
  position: absolute;
  right: 2.5vw;
  bottom: -70px;
  width: min(48vw, 690px);
  height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  mix-blend-mode: multiply;
  box-shadow: none;
}

.price-float {
  right: 22px;
  bottom: 20px;
  min-width: 220px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8ece5;
  box-shadow: var(--shadow);
}

.price-float span {
  color: var(--green-dark);
}

.price-float strong {
  color: var(--green);
  font-size: 22px;
  line-height: 1.15;
}

.dashboard {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 23.5vw 18px 3.5vw;
  align-items: start;
}

.filters,
.catalog-panel,
.basket-board {
  border-color: #e8ece5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.filters {
  position: sticky;
  top: 84px;
  display: block;
  padding: 18px;
}

.filters-head h2 {
  margin: 0;
  font-size: 17px;
}

.category-search span {
  display: none;
}

.category-search input {
  min-height: 36px;
  border-radius: 10px;
  background: #fff;
}

.category-list {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 4px;
}

.category-button {
  min-height: 34px;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.category-icon,
.quick-filter-icon {
  color: var(--green);
  background: var(--green-soft);
}

.category-button.active,
.quick-filter.active {
  background: var(--green);
  border-color: var(--green);
}

.category-button.category-image-card {
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  color: var(--category-accent, #2384d6);
  font-size: 15px;
}

.category-button.category-image-card.active {
  background: #fff;
  border-color: color-mix(in srgb, var(--category-accent, #2384d6) 46%, #fff);
  color: var(--category-accent, #2384d6);
}

.catalog-panel {
  padding: 16px;
  overflow: hidden;
}

.panel-head {
  align-items: center;
  margin-bottom: 10px;
}

.panel-head .eyebrow {
  margin-bottom: 3px;
}

.panel-head h2 {
  margin: 0;
  font-size: 13px;
}

select {
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.catalog-nav {
  top: 68px;
  margin: 0 -16px 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
}

.quick-filter {
  min-height: 46px;
  padding: 0 15px 0 9px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.quick-filter-count {
  display: none;
}

.all-categories-button,
.floating-categories {
  min-height: 38px;
  border-radius: 12px;
}

.product-grid {
  display: block;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid #e6eadf;
  border-radius: 16px;
  background: #fff;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: minmax(184px, 1.35fr) repeat(3, minmax(82px, 0.72fr)) minmax(118px, 0.86fr);
  align-items: stretch;
}

.comparison-header {
  min-height: 48px;
  color: #667085;
  background: #fbfcf8;
  border-bottom: 1px solid #e6eadf;
  font-size: 12px;
  font-weight: 900;
}

.comparison-header > div {
  display: grid;
  place-items: center;
  padding: 10px;
  border-left: 1px solid #e6eadf;
}

.comparison-header .product-column {
  place-items: center start;
  border-left: 0;
}

.comparison-row {
  min-height: 82px;
  border-bottom: 1px solid #e6eadf;
  background: #fff;
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row:hover {
  background: #fbfefb;
}

.comparison-row > .price-cell,
.best-offer {
  border-left: 1px solid #e6eadf;
}

.product-card {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.comparison-row .product-meta {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px 14px;
}

.product-photo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #f3f6ef;
}

.product-title-row {
  align-items: center;
}

.product-card h3 {
  margin: 0 0 4px;
  color: #202333;
  font-size: 15px;
  line-height: 1.18;
}

.product-card p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.source-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.source-badge.live {
  color: var(--green-dark);
  background: #dff4e8;
}

.source-badge.demo {
  color: #0877c9;
  background: #e4f1fb;
}

.price-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 82px;
  padding: 9px;
  text-align: center;
}

.price-cell.best {
  background: #f0fbf4;
}

.price {
  color: #202333;
  font-size: 14px;
  font-weight: 950;
}

.price-cell.best .price,
.best-offer strong {
  color: var(--green);
  font-size: 18px;
}

.store-updated,
.store-status {
  color: #667085;
  font-size: 11px;
  white-space: normal;
}

.discount-pill {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--red);
  background: #ffe8e8;
  font-size: 11px;
  vertical-align: middle;
}

.best-offer {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 82px;
  padding: 10px 14px;
  background: #eef9f1;
}

.best-offer span,
.best-offer small {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.best-offer .add-button {
  min-height: 32px;
  margin-top: 6px;
  padding: 0 12px;
  font-size: 12px;
}

.price-chart {
  display: none;
}

.basket-section {
  position: fixed;
  top: 286px;
  right: 3.3vw;
  bottom: auto;
  z-index: 18;
  display: block;
  width: min(315px, 20vw);
  max-height: calc(100vh - 310px);
  padding: 0;
  overflow: auto;
  transform: none;
  transition: none;
}

.basket-copy {
  display: none;
}

.basket-board {
  padding: 18px;
  border-radius: 18px;
}

.basket-board::before {
  content: "РЎРїРёСЃРѕРє РїРѕРєСѓРїРѕРє";
  display: block;
  margin-bottom: 14px;
  color: #202333;
  font-size: 17px;
  font-weight: 950;
}

.basket-totals {
  grid-template-columns: 1fr;
  gap: 8px;
}

.store-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #202333;
  background: #f7f9f5;
}

.store-total.pyaterochka,
.store-total.x5 {
  color: #202333;
  background: #f7f9f5;
  border-left: 4px solid var(--orange);
}

.store-total.perekrestok,
.store-total.perek {
  color: #202333;
  background: #f7f9f5;
  border-left: 4px solid var(--green);
}

.store-total.dixy {
  color: #202333;
  background: #f7f9f5;
  border-left: 4px solid var(--blue);
}

.store-total span {
  color: #667085;
}

.store-total strong {
  margin: 0;
  font-size: 16px;
}

.winner {
  margin: 12px 0;
  border-radius: 12px;
  color: var(--green-dark);
  background: #e8f8ee;
}

.basket-items {
  gap: 8px;
}

.basket-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #edf0ea;
  border-radius: 0;
}

.basket-photo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
  background: #f3f6ef;
}

.basket-item strong {
  font-size: 12px;
}

.basket-item span {
  font-size: 11px;
}

.qty-control {
  display: grid;
  grid-template-columns: 24px;
  justify-items: center;
  gap: 2px;
}

.qty-button {
  width: 24px;
  min-height: 24px;
  border-radius: 999px;
  background: #f3f6ef;
}

.cart-fab,
.floating-categories {
  display: none;
}

.footer {
  margin-top: 28px;
  background: #fff;
  border-top: 1px solid #e8ece5;
}

@media (max-width: 1180px) {
  .workspace {
    padding-right: 3.5vw;
  }

  .basket-section {
    position: static;
    width: auto;
    max-height: none;
    margin: 0 3.5vw 42px calc(3.5vw + 256px);
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 20px 12px;
  }

  .hero-visual {
    min-height: 180px;
  }

  .hero-visual img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 220px;
    border-radius: 18px;
  }

  .price-float {
    right: 14px;
    bottom: 14px;
  }

  .workspace {
    display: block;
    padding: 18px;
  }

  .filters {
    display: none;
  }

  .floating-categories {
    display: inline-flex;
  }

  body.filters-open .filters {
    display: block;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-header,
  .comparison-row {
    min-width: 860px;
  }

  .basket-section {
    margin: 0 18px 36px;
  }

  .cart-fab {
    display: inline-grid;
  }
}

@media (max-width: 640px) {
  .top-actions {
    margin-left: auto;
  }

  .login-button {
    display: none;
  }

  .brand-text strong {
    font-size: 21px;
  }

  h1 {
    font-size: 28px;
  }

  .search-shell {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .search-shell::before {
    display: none;
  }

  .search-box {
    margin-left: 0;
  }

  .primary-button {
    width: 100%;
  }

  .catalog-panel {
    padding: 12px;
  }

  .catalog-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .panel-head {
    display: grid;
  }
}

/* Card redesign based on the latest product-card reference. */
.brand {
  color: var(--green-dark);
}

.hero {
  min-height: 318px;
}

.hero-visual img {
  right: 0;
  bottom: 0;
  width: min(66vw, 1320px);
  height: 100%;
  min-height: 318px;
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: normal;
}

.price-float {
  display: none;
}

.workspace {
  grid-template-columns: 260px minmax(0, 1fr);
  padding-right: 22.5vw;
}

.catalog-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.panel-head {
  margin: 0 0 12px;
}

.catalog-nav {
  position: relative;
  top: auto;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.comparison-table,
.comparison-header,
.comparison-row {
  display: contents;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid #e7ebe4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
  align-items: start;
}

.product-card:hover {
  transform: none;
  box-shadow: 0 9px 24px rgba(16, 24, 40, 0.065);
}

.favorite-button {
  position: absolute;
  top: 15px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #98a2b3;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}

.product-media {
  display: grid;
  place-items: start center;
  min-width: 0;
  padding-top: 26px;
}

.product-photo {
  width: 104px;
  height: 128px;
  border-radius: 14px;
  object-fit: contain;
  background: #f5f8f2;
}

.product-photo.is-fallback {
  padding: 24px;
  opacity: 0.72;
  background: #f6f9f2;
}

.product-photo.is-missing {
  visibility: hidden;
}

.product-card .product-meta {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 0 22px 0 0;
}

.product-card h3 {
  margin: 0;
  color: #202333;
  font-size: 15px;
  line-height: 1.18;
  display: -webkit-box;
  min-height: 54px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}

.source-badge,
.discount-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.source-badge.live {
  color: #087540;
  background: #e1f6ea;
}

.source-badge.demo {
  color: #0877c9;
  background: #e4f1fb;
}

.discount-pill {
  color: #e8333b;
  background: #ffe6e8;
}

.card-best-price {
  display: block;
  margin-top: 1px;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.best-caption {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
}

.card-store-list {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}

.card-store-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: #344054;
  font-size: 12px;
  line-height: 1.2;
}

.card-store-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-store-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.store-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
}

.card-store-row strong {
  color: #202333;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.more-stores {
  justify-self: start;
  min-height: 20px;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.product-card .add-button {
  justify-self: start;
  min-height: 31px;
  margin-top: 2px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 12px;
}

.basket-section {
  top: 278px;
}

@media (max-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 1180px) {
  .workspace {
    display: block;
    padding-right: 3.5vw;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
  }

  .hero-visual img {
    width: 100%;
    min-height: 220px;
  }

  .catalog-panel {
    padding: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .product-photo {
    width: 84px;
    height: 108px;
  }
}

/* Hero image correction: use the grocery art as one full-width banner. */
.hero {
  isolation: isolate;
  min-height: 318px;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

@media (max-width: 980px) {
  .hero-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }
}

.workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 23.5vw 18px 3.5vw;
}

.filter-panel,
.catalog-panel {
  min-width: 0;
  width: 100%;
}

.filter-panel {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.filter-reset {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.filter-group {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 15px 0 0;
  margin-top: 15px;
}

.filter-group:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.filter-group h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.filter-option input {
  accent-color: var(--green);
  flex: 0 0 auto;
}

.filter-option small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.store-filter-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.price-filter {
  width: 100%;
  accent-color: var(--green);
}

.price-filter-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.catalog-nav {
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.category-list.category-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-height: none;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 12px;
  scrollbar-width: none;
}

.category-list.category-strip::-webkit-scrollbar {
  display: none;
}

.category-strip > .category-button {
  flex: 0 0 auto;
  width: auto;
  justify-content: center;
  white-space: nowrap;
}

.category-strip .category-button.category-image-card {
  min-height: 50px;
  padding: 7px 14px 7px 10px;
  font-size: 15px;
}

.category-strip .category-button.category-image-card .category-icon {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
}

.category-strip .category-button.category-image-card .category-img {
  width: 34px;
  height: 34px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
    padding-right: 3.5vw;
  }

  .basket-section {
    margin-left: 3.5vw;
  }
}

@media (max-width: 980px) {
  .workspace {
    display: block;
    padding: 18px;
  }

  .filter-panel {
    position: static;
    margin-bottom: 14px;
  }

  .floating-categories {
    display: none;
  }
}

/* Search bar visual match to the compact grocery hero reference. */
.hero {
  grid-template-columns: minmax(0, 805px) minmax(0, 1fr);
  align-items: start;
  height: 136px;
  min-height: 136px;
  padding: 0 68px;
}

.hero .hero-copy {
  display: flex;
  flex-direction: column;
  width: min(100%, 805px);
  max-width: 805px;
  padding-top: 1px;
}

.hero h1 {
  order: 1;
  max-width: 560px;
  margin-bottom: 8px;
  color: #111827;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero .eyebrow {
  order: 2;
  margin: 0 0 16px;
  color: #7c8491;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.hero .lead {
  display: none;
}

.hero .search-shell {
  order: 3;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 593px;
  max-width: 100%;
  height: 45px;
  min-height: 45px;
  margin-top: 0;
  padding: 4px;
  padding-left: 14px;
  border: 1px solid #d8ded7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.075);
}

.hero .search-shell::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 19px;
  height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 21l-4.35-4.35M10.8 18a7.2 7.2 0 1 1 0-14.4 7.2 7.2 0 0 1 0 14.4z' stroke='%23727b8c' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 19px 19px no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero .search-shell::after {
  display: none;
}

.hero .search-box {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 32px;
  margin-right: 0;
}

.hero .search-shell input {
  width: 100%;
  height: 35px;
  min-height: 35px;
  padding: 0 36px 0 0;
  border: none;
  outline: none;
  color: #111827;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: normal;
}

.hero .search-shell input::placeholder {
  color: #8a94a6;
  opacity: 1;
}

.hero .search-shell .primary-button,
.primary-button.site-search-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: auto;
  min-width: 104px;
  height: 35px;
  min-height: 35px;
  margin-left: 8px;
  padding: 0 18px;
  border: 2px solid #fff;
  border-radius: 0 13px 13px 0;
  color: #fff;
  background: #048b42;
  box-shadow: 0 4px 10px rgba(0, 145, 66, 0.17);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero .search-shell #clearSearch {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 13px !important;
  border-bottom-right-radius: 13px !important;
  clip-path: inset(0 round 0 13px 13px 0);
}

.hero .search-shell .primary-button:hover,
.hero .search-shell .primary-button:focus-visible {
  background: #04823e;
  outline: 0;
}

.hero .search-shell .primary-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 145, 66, 0.16);
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 178px;
    padding: 14px 18px 18px;
  }

  .hero .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 22px;
  }

  .hero .search-shell {
    width: 100%;
    height: 46px;
    min-height: 46px;
    border-radius: 18px;
  }

  .hero .search-shell::before,
  .hero .search-shell::after {
    display: block;
  }

  .hero .search-box {
    margin-left: 35px;
    margin-right: 0;
  }

  .hero .search-shell input {
    height: 36px;
    min-height: 36px;
    font-size: 13px;
  }

  .hero .search-shell .primary-button,
  .primary-button.site-search-button {
    min-width: 86px;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 0 12px 12px 0;
    font-size: 13px;
  }
}

/* Full visual pass based on the Cenomer grocery dashboard reference.
   This layer keeps existing catalog, basket, parser, and extension IDs intact. */
body {
  color: #101426;
  background: #f7f9f5;
}

.topbar {
  z-index: 90;
  min-height: 68px;
  padding: 0 clamp(28px, 5.6vw, 82px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8ece5;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
  will-change: opacity, transform;
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

body.catalog-sticky-active .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-112%);
}

.filter-sticky-spacer {
  display: none;
}

@media (min-width: 981px) {
  .filter-column {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 14px;
    align-content: start;
  }

  .filter-sticky-spacer {
    display: block;
    width: 100%;
    height: var(--catalog-sticky-height, 128px);
    border: 1px solid #e8ece5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
    pointer-events: none;
  }

  .catalog-panel {
    grid-column: 2;
  }

  body.catalog-sticky-active .filter-sticky-spacer {
    position: fixed;
    top: 0;
    left: clamp(28px, 4vw, 48px);
    z-index: 93;
    width: 230px;
    height: var(--catalog-sticky-height, 128px);
  }

  body.catalog-sticky-active .filter-panel {
    position: fixed;
    top: calc(var(--catalog-sticky-height, 128px) + 8px);
    left: clamp(28px, 4vw, 48px);
    z-index: 94;
    width: 230px;
    max-height: calc(100vh - var(--catalog-sticky-height, 128px) - 20px);
    overflow: auto;
  }

  body.catalog-sticky-active .catalog-panel {
    grid-column: 2;
  }
}

.brand {
  min-width: 224px;
  gap: 12px;
  color: #079447;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 40px;
  overflow: visible;
  border-radius: 10px;
  color: transparent;
  background: linear-gradient(180deg, #0aa652 0%, #008944 100%);
  box-shadow: 0 8px 18px rgba(0, 139, 68, 0.18);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -8px;
  width: 15px;
  height: 16px;
  border: 4px solid #079447;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.brand-mark::after {
  content: "вњ“";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.brand-text strong::after {
  content: "Р¦РµРЅР°РўСѓС‚";
  color: #079447;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-text small {
  color: transparent;
  font-size: 0;
  line-height: 1.2;
}

.brand-text small::after {
  content: "СЃСЂР°РІРЅРёРІР°Р№ Рё СЌРєРѕРЅРѕРјСЊ";
  color: #4d5568;
  font-size: 12px;
  font-weight: 750;
}

.nav {
  gap: clamp(22px, 2.4vw, 40px);
}

.nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
}

.nav a.active {
  color: #079447;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: #079447;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ghost-button {
  min-height: 38px;
  border-radius: 11px;
  border-color: #e4e8ef;
  color: #1f2434;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.035);
  font-size: 14px;
  font-weight: 750;
}

.location-button {
  min-width: 150px;
}

.location-button::before {
  content: "в—Џ";
  margin-right: 9px;
  color: #3f4658;
  font-size: 17px;
}

.login-button {
  min-width: 96px;
  background: #f7f8fa;
}

.login-button::before {
  content: "в™™";
  margin-right: 8px;
  color: #3f4658;
  font-size: 18px;
}

.hero {
  height: 252px;
  min-height: 252px;
  padding: 26px clamp(28px, 5.6vw, 82px) 0;
  background: #f4f8ef;
}

.hero .hero-copy {
  width: min(100%, 760px);
  max-width: 760px;
  padding-top: 0;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 11px;
  color: #111426;
  font-size: clamp(28px, 2.55vw, 38px);
  font-weight: 950;
  line-height: 1.08;
}

.hero .eyebrow {
  margin: 0 0 22px;
  color: #535a70;
  font-size: 14px;
  font-weight: 650;
}

.hero .search-shell {
  width: min(100%, 704px);
  height: 54px;
  min-height: 54px;
  padding: 5px;
  padding-left: 18px;
  border-color: #d9ded6;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.hero .search-shell::before {
  left: 18px;
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
}

.hero .search-box {
  margin-left: 39px;
}

.hero .search-shell input {
  height: 42px;
  min-height: 42px;
  padding-right: 36px;
  font-size: 14px;
  font-weight: 650;
}

.hero .search-shell .primary-button {
  min-width: 118px;
  height: 42px;
  min-height: 42px;
  border-radius: 0 15px 15px 0;
  background: linear-gradient(180deg, #03a65f 0%, #008c4f 100%);
  box-shadow: 0 9px 18px rgba(0, 146, 78, 0.2);
  font-size: 14px;
}

.hero .search-shell #clearSearch {
  border-top-right-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
  clip-path: inset(0 round 0 15px 15px 0);
}

.hero .main-search-clear {
  right: 2px;
}

.hero-visual img {
  object-position: center top;
}

.catalog-nav {
  z-index: 8;
  order: -1;
  margin: -58px 0 12px;
}

.category-list.category-strip {
  gap: 10px;
  padding: 0 2px 14px;
}

.category-strip > .category-button {
  min-height: 42px;
  padding: 6px 16px 6px 10px;
  border: 1px solid #e5ebe2;
  border-radius: 16px;
  color: #151a2c;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.075);
  font-size: 13px;
  font-weight: 850;
}

.category-strip > .category-button.active,
.category-strip > .category-button:hover {
  color: #fff;
  background: linear-gradient(180deg, #03a65f 0%, #008a4d 100%);
  border-color: transparent;
}

.category-strip > .category-button:has(.category-img[src*="assets/test-category-icons"]):hover,
.category-strip > .category-button:has(.category-img[data-src*="assets/test-category-icons"]):hover {
  color: #151a2c;
  background: rgba(255, 255, 255, 0.96);
  border-color: color-mix(in srgb, #079447 18%, #dfe7e1);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.075);
}

.category-strip > .category-button:has(.category-img[src*="assets/test-category-icons"]):hover .category-icon,
.category-strip > .category-button:has(.category-img[data-src*="assets/test-category-icons"]):hover .category-icon {
  background: transparent;
}

.category-strip .category-group:has(.category-img[src*="assets/test-category-icons"]) .parent-category:hover,
.category-strip .category-group:has(.category-img[data-src*="assets/test-category-icons"]) .parent-category:hover {
  color: #1d2333;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.category-strip .category-group:has(.category-img[src*="assets/test-category-icons"]) .category-toggle:hover,
.category-strip .category-group:has(.category-img[data-src*="assets/test-category-icons"]) .category-toggle:hover,
.category-strip .category-group:has(.category-img[src*="assets/test-category-icons"]) .category-toggle:focus-visible,
.category-strip .category-group:has(.category-img[data-src*="assets/test-category-icons"]) .category-toggle:focus-visible {
  color: #667085;
  background: transparent;
}

.category-strip .category-button.category-image-card .category-icon,
.category-strip .category-button .category-icon {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
  background: transparent;
}

.category-strip .category-button.category-image-card .category-img,
.category-strip .category-button .category-img {
  width: 26px;
  height: 26px;
}

.workspace {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  padding: 0 clamp(28px, 4vw, 48px) 18px clamp(28px, 4vw, 48px);
}

.filter-panel {
  position: sticky;
  top: 86px;
  min-width: 0;
  padding: 22px 16px;
  border: 1px solid #e8ece5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
}

.filter-panel-head h2,
.filter-group h3 {
  color: #101426;
  font-weight: 950;
}

.filter-panel-head h2 {
  font-size: 17px;
}

.filter-reset {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
}

.filter-option {
  min-height: 27px;
  color: #202536;
  font-size: 12px;
  font-weight: 700;
}

.filter-option input {
  width: 14px;
  height: 14px;
}

.price-filter {
  accent-color: #079447;
}

.catalog-panel {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.panel-head {
  display: none;
}

.catalog-panel::before {
  content: "рџҐ›  РњРѕР»РѕС‡РЅРѕРµ\aрџ§Ђ  РЎС‹СЂ\aрџҐљ  РЇР№С†Р°\a\aрџҐ¦  РћРІРѕС‰Рё\aрџЌЋ  Р¤СЂСѓРєС‚С‹\aрџЌ„  Р“СЂРёР±С‹\A\AрџЊЅ  РњР°РєР°СЂРѕРЅС‹\aрџЊѕ  РљСЂСѓРїС‹\aрџ›ўпёЏ  РњР°СЃР»Рѕ\aрџҐ«  РЎРїРµС†РёРё\a\aрџЌЊ  РЎРЅРµРєРё\aрџЌї  РџРѕРїРєРѕСЂРЅ\A\AрџЌ«  РЁРѕРєРѕР»Р°Рґ\aрџЌ¬  РљРѕРЅС„РµС‚С‹\aрџ§ѓ  РЎРѕРєРё\aрџ’§  Р’РѕРґР°\aрџҐ–  РҐР»РµР± Рё РІС‹РїРµС‡РєР°\A\AрџҐ©  РњСЏСЃРѕ Рё РїС‚РёС†Р°\aрџЊ­  РљРѕР»Р±Р°СЃС‹\aрџђџ  Р С‹Р±Р°\aрџ¦ђ  РњРѕСЂРµРїСЂРѕРґСѓРєС‚С‹\aвќ„пёЏ  Р—Р°РјРѕСЂРѕР·РєР°\A\Aрџ‘¶  Р”РµС‚СЏРј\aрџЌ…  РЎРѕСѓСЃС‹\aв•  РљРѕС„Рµ Рё С‡Р°Р№\aрџҐЈ  Р—Р°РІС‚СЂР°РєРё\aрџЌ”  Р‘С‹СЃС‚СЂР°СЏ РµРґР°\A\AрџҐ«  РљРѕРЅСЃРµСЂРІС‹\aрџ’љ  Р—РґРѕСЂРѕРІСЊРµ\aрџҐњ  РћСЂРµС…Рё Рё СЃСѓС…РѕС„СЂСѓРєС‚С‹\aрџЌЇ  РњС‘Рґ Рё РґР¶РµРјС‹\aрџђѕ  Р—РѕРѕС‚РѕРІР°СЂС‹\aрџ§ґ  Р“РёРіРёРµРЅР° Рё Р°РїС‚РµРєР°\aрџ§Ѕ  РЈР±РѕСЂРєР°\aрџЌ·  РђР»РєРѕРіРѕР»СЊ 18+";
  display: block;
  order: 0;
  column-count: 6;
  column-gap: 28px;
  min-height: 214px;
  padding: 20px 24px;
  border: 1px solid #e8ece5;
  border-radius: 18px;
  color: #1d2333;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
  white-space: pre-line;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.9;
}

.product-grid {
  order: 1;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
}

.product-card {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  min-height: 208px;
  padding: 16px;
  border: 1px solid #e6ebe2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 9px 24px rgba(16, 24, 40, 0.065);
}

.product-photo {
  width: 98px;
  height: 118px;
  background: #f6f9f2;
}

.product-card h3 {
  min-height: 36px;
  font-size: 14px;
  line-height: 1.18;
  -webkit-line-clamp: 3;
}

.source-badge,
.discount-pill {
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
}

.card-best-price {
  color: #069447;
  font-size: 20px;
}

.best-caption {
  color: #079447;
  font-size: 11px;
}

.product-card .add-button {
  min-height: 28px;
  padding: 0 18px;
  border-radius: 7px;
}

.catalog-panel::after {
  content: none;
  display: none;
}

.basket-section {
  top: 318px;
  right: clamp(28px, 3.8vw, 48px);
  bottom: auto;
  z-index: 30;
  width: 216px;
  max-height: calc(100vh - 342px);
  overflow: hidden;
  border: 1px solid #e8ece5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  transform: none;
}

.basket-copy {
  padding: 17px 16px 10px;
  border-bottom: 0;
}

.basket-copy .eyebrow,
.basket-copy h2,
.basket-copy p {
  display: none;
}

.basket-copy::before {
  content: "рџ›’  РЎРїРёСЃРѕРє РїРѕРєСѓРїРѕРє";
  display: block;
  color: #101426;
  font-size: 14px;
  font-weight: 950;
}

.cart-close {
  display: none;
}

.basket-board {
  max-height: calc(100vh - 402px);
  padding: 0 16px 16px;
  overflow-y: auto;
  background: transparent;
}

.basket-totals {
  display: grid;
  gap: 6px;
  margin-top: 3px;
}

.store-total {
  min-height: 0;
  padding: 8px 0;
  border-top: 1px solid #edf0ea;
  background: transparent;
}

.store-total span {
  color: #667085;
  font-size: 11px;
}

.store-total strong {
  margin-top: 2px;
  color: #079447;
  font-size: 15px;
}

.winner {
  margin: 8px 0 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #079447;
  background: #eefaf3;
  font-size: 12px;
  font-weight: 850;
}

.basket-items {
  gap: 8px;
}

.basket-item {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  min-height: 54px;
  padding: 8px 0;
  border-top: 1px solid #edf0ea;
  background: transparent;
}

.basket-photo {
  width: 36px;
  height: 42px;
  object-fit: contain;
}

.basket-item strong,
.basket-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-item strong {
  color: #101426;
  font-size: 11px;
}

.basket-item span {
  color: #667085;
  font-size: 10px;
}

.qty-control {
  grid-column: 1 / -1;
  justify-content: start;
}

.qty-button {
  width: 24px;
  min-height: 24px;
  border-radius: 7px;
}

.footer {
  display: grid;
  grid-template-columns: 230px 1fr 1fr 1fr;
  gap: 36px;
  margin-top: 18px;
  padding: 28px clamp(28px, 5.6vw, 82px);
  border-top: 1px solid #e8ece5;
  color: #667085;
  background: #fff;
  font-size: 13px;
}

.footer span:first-child {
  color: #079447;
  font-size: 22px;
  font-weight: 950;
}

.footer span:nth-child(2)::after {
  content: " В· РџСЂРёР»РѕР¶РµРЅРёРµ В· РџРѕРґРїРёСЃРєР° РЅР° РЅРѕРІРѕСЃС‚Рё В· РџРѕРґРґРµСЂР¶РєР° В· Рћ СЃРµСЂРІРёСЃРµ";
}

@media (max-width: 1320px) {
  .workspace {
    padding-right: clamp(28px, 4vw, 48px);
  }

  .basket-section {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(420px, calc(100vw - 28px));
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(105%);
  }

  body.cart-open .basket-section {
    transform: translateX(0);
  }

  .cart-close {
    display: grid;
  }

  .basket-copy .eyebrow,
  .basket-copy h2,
  .basket-copy p {
    display: block;
  }

  .basket-copy::before {
    display: none;
  }

  .basket-board {
    max-height: none;
  }
}

@media (max-width: 1180px) {
  .topbar {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand {
    min-width: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .nav a {
    min-height: 42px;
  }

  .hero {
    height: 248px;
    min-height: 248px;
  }

  .catalog-panel::before {
    column-count: 3;
  }
}

@media (max-width: 980px) {
  .hero {
    height: auto;
    min-height: 250px;
    padding: 24px 20px 26px;
  }

  .catalog-nav {
    margin-top: -34px;
  }

  .workspace {
    display: block;
    padding: 0 18px 18px;
  }

  .filter-panel {
    position: static;
    margin-bottom: 14px;
  }

  .catalog-panel::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-actions {
    width: 100%;
  }

  .location-button {
    min-width: 0;
    flex: 1;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero .search-shell {
    height: 48px;
    min-height: 48px;
  }

  .hero .search-shell .primary-button {
    min-width: 86px;
    height: 38px;
    min-height: 38px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-panel::after,
  .footer {
    display: none;
  }
}

/* Working saved categories: replace the decorative mega menu with real buttons. */
.catalog-panel::before {
  display: none;
}

.catalog-nav {
  order: 0;
  width: 100%;
  margin: 0 0 12px;
}

.category-list.category-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  align-items: start;
  column-gap: 6px;
  row-gap: 1px;
  grid-auto-rows: min-content;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 13px 20px;
  border: 1px solid #e8ece5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
}

.category-strip > .category-button,
.category-strip > .category-group {
  width: 100%;
}

.category-strip > .category-button,
.category-strip .parent-category,
.category-strip .subcategory-button {
  min-height: 32px;
  padding: 4px 9px;
  border: 0;
  border-radius: 9px;
  color: #1d2333;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 780;
}

.category-strip > .category-button {
  justify-content: flex-start;
}

.category-strip .category-group {
  display: grid;
  gap: 0;
  break-inside: avoid;
}

.category-strip .category-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px;
}

.category-strip .category-name {
  gap: 6px;
}

.category-strip .category-icon,
.category-strip .category-button.category-image-card .category-icon {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
}

.category-strip .category-img,
.category-strip .category-button.category-image-card .category-img {
  width: 26px;
  height: 26px;
}

.category-strip .category-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #667085;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.category-strip .category-toggle:hover,
.category-strip .category-toggle:focus-visible {
  color: #079447;
  background: #eefaf3;
  outline: 0;
}

.category-strip .category-group.open .category-toggle {
  color: #079447;
  transform: rotate(90deg);
}

.category-strip .category-count {
  display: none;
}

.category-strip .subcategory-list {
  display: none;
  gap: 0;
  margin: 0 0 3px 26px;
  padding: 0;
}

.category-strip .category-group.open .subcategory-list {
  display: grid;
}

.category-strip .subcategory-button {
  min-height: 29px;
  color: #3f4658;
  font-size: 14px;
  font-weight: 700;
}

.category-strip .parent-category:hover,
.category-strip .subcategory-button:hover,
.category-strip .parent-category.active,
.category-strip .subcategory-button.active {
  color: #079447;
  background: #eefaf3;
}

.product-grid {
  order: 1;
}

.catalog-panel::after {
  order: 2;
}

@media (max-width: 1180px) {
  .category-list.category-strip {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 980px) {
  .category-list.category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .category-list.category-strip {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

.catalog-nav {
  margin: 0 0 4px;
}

.category-list.category-strip {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  column-gap: 12px;
  row-gap: 8px;
  padding: 12px 14px 8px;
  border: 1px solid #e4e8e2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.055);
}

.category-strip > .category-group {
  width: 100%;
}

.category-strip .category-parent-row {
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 4px;
}

.category-strip .parent-category {
  min-height: 40px;
  padding: 6px 9px;
  border: 1px solid #dde4dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2333;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

.category-strip .parent-category:hover,
.category-strip .parent-category.active {
  color: #079447;
  border-color: #cfe9d8;
  background: #f1fbf5;
}

.category-strip .category-name {
  gap: 8px;
  align-items: center;
}

.category-strip .category-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: currentColor;
  background: transparent;
}

.category-line-svg {
  width: 27px;
  height: 27px;
  display: block;
}

.category-strip .parent-category .category-count {
  display: none;
}

.category-strip .category-toggle {
  align-self: center;
  width: 22px;
  min-height: 40px;
  color: #7b8495;
  background: transparent;
  border-radius: 8px;
}

.category-strip .category-toggle:hover,
.category-strip .category-toggle:focus-visible {
  color: #079447;
  background: #f1fbf5;
}

.category-strip .subcategory-list {
  margin: 5px 0 0 34px;
}

@media (max-width: 1180px) {
  .category-list.category-strip {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 980px) {
  .category-list.category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .category-list.category-strip {
    grid-template-columns: 1fr;
  }
}

.category-strip .category-group:not(.open) .subcategory-list {
  display: none !important;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.category-strip .category-group.open .subcategory-list {
  display: grid !important;
  height: auto;
  overflow: visible;
}

/* Floating catalog controls appear only after the regular categories scroll away. */
.catalog-sticky-control {
  position: fixed;
  top: var(--catalog-sticky-top, 72px);
  left: calc(clamp(28px, 4vw, 48px) + 244px);
  right: clamp(28px, 4vw, 48px);
  z-index: 95;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(222, 228, 221, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.985);
  visibility: hidden;
  backdrop-filter: blur(14px);
  will-change: opacity, transform;
  transition:
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
}

.catalog-sticky-control.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition:
    opacity 0.24s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.catalog-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px 0 12px;
  border: 1px solid #dfe6dc;
  border-radius: 8px;
  background: #fff;
}

.catalog-search-submit {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.catalog-search-submit:hover,
.catalog-search-submit:focus-visible {
  color: #079447;
  background: #eaf7ef;
  box-shadow: 0 0 0 1px rgba(7, 148, 71, 0.12);
  outline: 0;
}

.catalog-search-submit:active {
  background: #dff2e7;
}

.catalog-search-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 760;
}

.catalog-search input::placeholder {
  color: #7b8495;
}

.catalog-search-suggestions {
  display: none;
  max-height: var(--suggestions-available-height, calc(100dvh - 12px));
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #dfe6dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.catalog-search-suggestions.open {
  display: grid;
  gap: 4px;
}

.catalog-search-suggestions .search-suggestion {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 3px 5px;
}

.catalog-search-suggestions .search-suggestion img {
  width: 34px;
  height: 34px;
}

.catalog-search-suggestions .suggestion-main strong {
  font-size: 12px;
}

.catalog-search-suggestions .suggestion-main small,
.catalog-search-suggestions .suggestion-price {
  font-size: 10px;
}

.catalog-search-suggestions .search-show-all {
  min-height: 20px;
  padding: 1px 6px 0;
  font-size: 11px;
}

/* Keep the main hero search suggestions above the page content. */
.hero {
  overflow: visible;
  position: relative;
  z-index: 30;
}

.hero .hero-copy,
.hero .search-shell,
.hero .search-box {
  position: relative;
}

.hero .hero-copy {
  z-index: 32;
}

.hero .search-shell {
  z-index: 34;
  overflow: visible;
}

.hero .search-box {
  z-index: 35;
}

.hero .search-suggestions {
  z-index: 120;
}

.catalog-search-clear {
  display: none;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: #f3f6f1;
  font-size: 22px;
  line-height: 1;
}

.catalog-search-clear.visible {
  display: grid;
}

.catalog-search-clear:hover,
.catalog-search-clear:focus-visible {
  color: #079447;
  background: #eaf7ef;
  outline: 0;
}

.catalog-sticky-control .catalog-nav {
  margin: 0;
  min-width: 0;
}

.catalog-sticky-control .category-list.category-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.catalog-sticky-control .category-list.category-strip::-webkit-scrollbar {
  display: none;
}

.catalog-sticky-control .category-strip > .category-group {
  flex: 0 0 auto;
  width: auto;
}

.catalog-sticky-control .category-strip .category-parent-row {
  display: block;
}

.catalog-sticky-control .category-strip .parent-category {
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid #dde4dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2333;
  white-space: nowrap;
}

.catalog-sticky-control .category-strip .parent-category:hover,
.catalog-sticky-control .category-strip .parent-category.active {
  color: #079447;
  border-color: #cfe9d8;
  background: #f1fbf5;
}

.catalog-sticky-control .category-strip .category-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.catalog-sticky-control .category-strip .category-img,
.catalog-sticky-control .category-strip .category-button.category-image-card .category-img {
  width: 25px;
  height: 25px;
}

.catalog-sticky-control .category-strip .category-toggle,
.catalog-sticky-control .category-strip .subcategory-list {
  display: none !important;
}

@media (max-width: 980px) {
  .catalog-sticky-control {
    left: 18px;
    right: 18px;
  }
}

@media (max-width: 640px) {
  .catalog-sticky-control {
    left: 12px;
    right: 12px;
    padding: 10px;
    border-radius: 10px;
  }

  .catalog-search {
    min-height: 42px;
  }

  .catalog-sticky-control .category-strip .parent-category {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 13px;
  }
}

/* Restore compact floating shopping-list button. */
.cart-fab-anchor {
  position: absolute !important;
  top: 0;
  right: calc(-1 * var(--page-container-pad) - 49px) !important;
  bottom: 18px;
  left: auto !important;
  z-index: 95;
  width: 68px;
  height: auto;
  pointer-events: none;
}

.cart-fab-anchor.is-catalog-bound {
  position: absolute !important;
  left: auto !important;
  right: calc(-1 * var(--page-container-pad) - 49px) !important;
}

.cart-fab {
  position: sticky;
  top: calc(100vh - 14px);
  display: inline-grid !important;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #15b866 0%, #08a857 100%);
  box-shadow: 0 10px 24px rgba(8, 168, 87, 0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  pointer-events: auto;
}

.cart-fab:hover {
  background: linear-gradient(180deg, #18c06d 0%, #08a857 100%);
  transform: none;
}

.cart-fab-icon {
  width: 35.5px;
  height: 35.5px;
  object-fit: contain;
  transform: translateX(1px);
}

.cart-fab-count {
  top: -4px;
  right: -4px;
}

.cart-fab.has-items .cart-fab-count {
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.basket-section {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(420px, calc(100vw - 28px));
  max-height: 100vh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -22px 0 60px rgba(24, 39, 31, 0.22);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

body.cart-open .basket-section {
  transform: translateX(0);
}

.cart-backdrop {
  z-index: 90;
}

.cart-close {
  display: grid;
}

.basket-copy {
  padding: 26px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.basket-copy .eyebrow,
.basket-copy h2,
.basket-copy p {
  display: block;
}

.basket-copy::before {
  display: none;
}

.basket-board {
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .cart-fab-anchor {
    left: auto !important;
    right: 16px !important;
    bottom: var(--cart-fab-bottom, 20px);
    width: 62px;
    height: 62px;
  }

  .cart-fab {
    width: 62px;
    height: 62px;
  }

  .cart-fab-icon {
    width: 32.5px;
    height: 32.5px;
  }
}

@media (max-width: 768px) {
  .cart-fab-anchor {
    position: fixed !important;
    left: auto !important;
    right: 16px !important;
    bottom: 20px;
    margin-right: 0;
  }

  .cart-fab-anchor.is-catalog-bound {
    position: fixed !important;
    left: auto !important;
    right: 16px !important;
  }

  .cart-fab {
    position: static;
  }
}

/* Inline catalog filters: the filter bar now lives between categories and products. */
.workspace {
  --catalog-side-gap: calc(clamp(28px, 4vw, 48px) + 2.5vw - 23px);
  --sidebar-width: 320px;
  --sidebar-sticky-width: 320px;
  --sidebar-cut-left: 0px;
  --sidebar-min-height: 568px;
  --sidebar-panel-min-height: 629px;
  --category-card-height: 67px;
  --category-icon-size: 30px;
  --category-font-size: 10.5px;
  --category-gap: 6px;
  --category-card-padding-y: 5px;
  --category-card-padding-x: 6px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 33px;
  align-items: start;
  padding: 0 calc(max(5px, var(--catalog-side-gap)) + 18px) 18px max(5px, calc(var(--catalog-side-gap) - 6px));
}

.filter-column,
.filter-sticky-spacer {
  display: none;
}

.catalog-left-spacer {
  grid-column: 1;
  display: block;
  justify-self: end;
  width: var(--sidebar-sticky-width);
  min-height: var(--sidebar-min-height);
  border: 1px solid #e8ece5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
  pointer-events: none;
}

.catalog-panel {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  overflow-anchor: none;
}

.catalog-sticky-control {
  left: calc(max(5px, var(--catalog-side-gap)) + var(--sidebar-width) + 33px);
  right: calc(max(5px, var(--catalog-side-gap)) + 18px);
}

body.catalog-sticky-active .catalog-left-spacer {
  position: fixed;
  top: 0;
  left: calc(max(5px, calc(var(--catalog-side-gap) - 6px)) + var(--sidebar-cut-left));
  z-index: 93;
  width: var(--sidebar-sticky-width);
  min-height: 625px;
}

.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  order: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-height: none;
  margin: 0 0 12px;
  padding: 8px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #e8ece5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.055);
  scrollbar-width: none;
}

.catalog-filter-panel::-webkit-scrollbar {
  display: none;
}

.catalog-filter-panel .filter-panel-head {
  display: contents;
  margin: 0;
}

.catalog-filter-panel .filter-panel-head h2 {
  order: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 0 6px 0 0;
  color: #101426;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.filter-total {
  color: #7b8495;
  font-size: 12px;
  font-weight: 750;
}

.catalog-filter-panel .filter-reset {
  order: 90;
  min-height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.catalog-filter-panel .filter-reset:hover,
.catalog-filter-panel .filter-reset:focus-visible {
  color: #079447;
  background: #f1fbf5;
  outline: 0;
}

.catalog-filter-panel .filter-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-filter-panel .filter-group h3 {
  min-height: 34px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  color: #202536;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.catalog-filter-panel .store-filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-option,
.recipe-price-controls .filter-option {
  min-height: 34px;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  color: #202536;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.catalog-filter-panel .filter-option:has(input:checked),
.recipe-price-controls .filter-option:has(input:checked) {
  color: #079447;
  border-color: #cfe9d8;
  background: #eefaf3;
}

.catalog-filter-panel .filter-option small {
  margin-left: 4px;
  color: #7b8495;
}

.catalog-filter-panel .filter-option input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.catalog-filter-panel .filter-group-price {
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  background: #fff;
}

.catalog-filter-panel .filter-group-price h3 {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.catalog-filter-panel .price-filter {
  width: 118px;
}

.catalog-filter-panel .price-filter-scale {
  gap: 2px;
  margin: 0;
  color: #079447;
  font-size: 12px;
  font-weight: 900;
}

.catalog-filter-panel .price-filter-scale span:first-child {
  display: none;
}

.catalog-filter-panel #priceRangeValue::before {
  content: "РґРѕ ";
}

.catalog-filter-panel #priceRangeValue::after {
  content: " в‚Ѕ";
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort .filter-option input {
  display: none;
}

.catalog-sort-select {
  order: 100;
  min-height: 34px;
  max-width: 210px;
  padding: 0 34px 0 12px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  color: #202536;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.catalog-nav {
  order: 0;
}

.product-grid {
  order: 2;
}

@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
  }
}

@media (max-width: 1180px) {
  .catalog-filter-panel,
  body.catalog-sticky-active .catalog-filter-panel {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .catalog-filter-panel::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 980px) {
  .workspace {
    display: block;
  }

  .catalog-left-spacer {
    display: none;
  }

  .catalog-filter-panel,
  body.catalog-sticky-active .catalog-filter-panel {
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 0 12px 18px;
  }

  .catalog-filter-panel,
  body.catalog-sticky-active .catalog-filter-panel {
    padding: 8px;
  }

  .catalog-filter-panel .filter-group-price {
    min-width: 218px;
  }
}

/* Catalog polish: compact filters, stable cards, and a seamless page field. */
body {
  background: #f4f8f1;
}

.workspace {
  position: relative;
  isolation: isolate;
  overflow-anchor: none;
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: #f4f8f1;
}

.catalog-left-spacer {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.055);
}

.assistant-panel,
body.catalog-sticky-active .assistant-panel {
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.assistant-card {
  width: 100%;
  padding: 22px 16px 20px;
  border: 1px solid #e7ebe4;
  border-radius: 24px;
  color: #10182d;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.055);
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.assistant-title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #079b50;
  background: #e7f6eb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.preview-badge svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}

.assistant-desc {
  margin: 0 0 16px;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  background: #fff;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #303949;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-text {
  min-width: 0;
}

.feature-text strong {
  display: block;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.feature-text span {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #079b50;
  background: #e8f6ec;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  color: #8b95a1;
  background: #f5f6f3;
}

.locked-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-primary-btn,
.assistant-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.assistant-primary-btn {
  gap: 9px;
  height: 46px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #08a65a 0%, #058947 100%);
  box-shadow: 0 10px 20px rgba(6, 150, 79, 0.18);
  font-weight: 700;
}

.assistant-primary-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.assistant-secondary-btn {
  height: 42px;
  margin-top: 10px;
  border: 1px solid #dfe5ec;
  color: #253044;
  background: #fff;
  font-weight: 600;
}

.app-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1e8df;
  border-radius: 16px;
  background-color: #fbfdf9;
  background-image: url("assets/assistant-app-download-bg.webp?v=b63a870817e9fe0b4ca1cd73f56a0642648e38ce1739d8abda2ee24942fa6a65");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 112% auto;
}

.app-download-title {
  margin: 0 0 5px;
  color: #111827;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.app-download-text {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.app-download-store-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 188px;
  max-width: 100%;
  margin-top: 12px;
}

.app-download-store-buttons .footer-store-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 188px;
  height: 46px;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.app-download-store-buttons .footer-store-button img {
  width: 172px;
  height: 38px;
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
  display: block;
}

.store-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.12);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.store-btn svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #717b8f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.preview-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel {
  overflow: visible;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  padding: 11px 0 10px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-filter-panel .filter-panel-head h2 {
  display: none;
}

.catalog-filter-panel .filter-reset {
  display: none;
}

.filter-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.filter-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dfe6dc;
  border-radius: 10px;
  color: #202536;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.filter-dropdown summary small:empty {
  display: none;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: rotate(45deg) translateY(-2px);
}

.filter-dropdown[open] summary,
.recipe-price-controls .filter-dropdown.is-selected summary {
  color: #079447;
  border-color: #bfe5cf;
  background: #eefaf3;
}

.filter-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.filter-dropdown summary small {
  color: #7b8495;
  font-size: 11px;
  font-weight: 800;
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 7px;
  width: 238px;
  padding: 10px;
  border: 1px solid #dfe6dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.14);
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .store-filter-list {
  display: grid;
  gap: 7px;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option {
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
}

.catalog-filter-panel .filter-group-price {
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
}

.catalog-filter-panel .price-filter {
  width: 168px;
}

.price-manual-field {
  position: relative;
  inset-inline-start: -5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #dfe6dc;
  border-radius: 8px;
  color: #667085;
  background: #f8faf7;
  font-size: 12px;
  font-weight: 850;
}

.price-manual-field input {
  width: 66px;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: #079447;
  background: transparent;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: inherit;
  font-weight: 950;
  text-align: right;
  outline: 0;
}

.catalog-filter-panel #priceRangeValue {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort {
  gap: 7px;
  margin-left: auto;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort h3 {
  display: none;
}

.catalog-sort-select {
  min-height: 36px;
  width: auto;
  min-width: 0;
  max-width: max-content;
  padding: 0 36px 0 13px;
  border: 1px solid #dfe6dc;
  border-radius: 10px;
  color: #202536;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.catalog-sort-select:hover,
.catalog-sort-select:focus-visible {
  border-color: #cfe9d8;
  background-color: #f8fdf9;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' fill='none' stroke='%23079447' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  outline: 0;
}

.catalog-filter-panel .price-filter-scale {
  display: none;
}

@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 16px;
  }
}

.product-card {
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  min-height: 238px;
  overflow: hidden;
  border-radius: 16px;
}

.product-card .product-meta {
  min-width: 0;
  padding-right: 18px;
}

.product-card h3 {
  min-height: 40px;
  -webkit-line-clamp: 2;
}

.card-best-price {
  overflow-wrap: anywhere;
}

@media (max-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .catalog-filter-panel,
  body.catalog-sticky-active .catalog-filter-panel {
    overflow: visible;
    flex-wrap: wrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-dropdown,
  .filter-dropdown summary,
  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-price,
  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort,
  .catalog-sort-select {
    width: 100%;
  }

  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort {
    margin-left: 0;
  }

  .filter-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .catalog-filter-panel .filter-group-price {
    flex-wrap: wrap;
  }

  .catalog-filter-panel .price-filter {
    width: min(100%, 180px);
  }
}

/* Secondary category panel in the side block. */
.workspace {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.catalog-sticky-control {
  left: calc(max(5px, var(--catalog-side-gap)) + 315px);
  display: grid;
}

.catalog-sticky-control .catalog-nav {
  display: none !important;
}

body.catalog-sticky-active .catalog-left-spacer {
  top: var(--catalog-sticky-top-offset, 72px);
  z-index: 80;
  width: var(--sidebar-sticky-width);
  max-height: none;
  height: auto;
  overflow: visible;
}

.side-category-panel,
body.catalog-sticky-active .side-category-panel {
  pointer-events: auto;
  min-height: var(--sidebar-panel-min-height);
  height: auto;
  padding: 9px;
  overflow: visible;
  border-color: #e5ebe1;
  background: #fff;
}

.side-category-panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

body.catalog-sticky-active .side-category-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition: none;
}

body.catalog-sticky-active .topbar {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.cart-open.catalog-sticky-active .topbar,
body.cart-open .topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

.side-category-view {
  animation: none;
}

@keyframes sideCategoryViewIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.side-category-head strong {
  color: #202536;
  font-size: 12px;
  font-weight: 950;
}

.side-category-all {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #dfe6dc;
  border-radius: 8px;
  color: #079447;
  background: #eefaf3;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.side-search-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  color: #667085;
  background: #fff;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.side-search-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-search-toggle:hover,
.side-search-toggle:focus-visible {
  color: #079447;
  border-color: #bfe5cf;
  background: #eefaf3;
  outline: 0;
  transform: scale(1.08);
}

.side-search-toggle.active {
  color: #079447;
  border-color: #bfe5cf;
  background: #eefaf3;
}

.side-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--category-gap);
  grid-auto-rows: var(--category-card-height);
}

.side-category-button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  height: var(--category-card-height);
  min-height: var(--category-card-height);
  padding: var(--category-card-padding-y) var(--category-card-padding-x);
  border: 1px solid #e4e9df;
  border-radius: 9px;
  color: #273244;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.035);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.12;
  text-align: center;
  cursor: pointer;
}

.side-category-button:hover,
.side-category-button:focus-visible,
.side-category-button.active {
  color: #079447;
  border-color: #cfe9d8;
  background: #eefaf3;
  outline: 0;
}

.side-category-icon,
.side-category-title-icon {
  display: grid;
  place-items: center;
  width: var(--category-icon-size);
  height: var(--category-icon-size);
  color: #5f6878;
  opacity: 0.82;
  transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.side-category-button.active .side-category-icon,
.side-category-button:hover .side-category-icon {
  color: #079447;
  opacity: 1;
  transform: none;
}

.side-category-icon .category-svg,
.side-category-title-icon .category-svg {
  width: var(--category-icon-size);
  height: var(--category-icon-size);
}

.side-category-button .side-category-icon .category-svg {
  width: 39px;
  height: 39px;
}

.side-category-button .side-category-icon .category-line-svg {
  width: 39px;
  height: 39px;
}

.side-category-button .side-category-icon .category-img {
  width: 39px;
  height: 39px;
}

.side-category-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  min-height: 20px;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f4658;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}

.side-category-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: currentColor;
  transform: translateY(-1px);
  transition: transform 0.16s ease;
}

.side-category-back-icon svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-category-back-text {
  color: currentColor;
}

.side-category-back:hover,
.side-category-back:focus-visible {
  color: #079447;
  outline: 0;
}

.side-category-back:hover .side-category-back-icon,
.side-category-back:focus-visible .side-category-back-icon {
  transform: translateX(-2px) translateY(-1px);
}

.side-category-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-category-title {
  display: grid;
  grid-template-columns: var(--category-icon-size) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 35px;
  margin-bottom: 8px;
  color: #111827;
}

.side-category-title strong {
  color: #202536;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
}

.side-subcategory-list {
  display: grid;
  gap: 0;
  padding-bottom: 10px;
}

.side-subcategory-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #3f4658;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.side-subcategory-button small {
  display: none;
}

.side-subcategory-button:hover,
.side-subcategory-button:focus-visible,
.side-subcategory-button.active {
  color: #079447;
  border-color: #cfe9d8;
  background: #eefaf3;
  outline: 0;
}

.side-subcategory-all {
  width: 100%;
  margin-bottom: 0;
}

.side-category-empty {
  padding: 12px;
  color: #7b8495;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.side-search-box {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 0 6px 0 12px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  background: #fff;
}

.side-search-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #667085;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #202536;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.side-search-box input::placeholder {
  color: #7b8495;
}

.side-search-clear {
  display: none;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #667085;
  background: #f3f6f1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.side-search-clear.visible {
  display: grid;
}

.side-search-clear:hover,
.side-search-clear:focus-visible {
  color: #079447;
  background: #eaf7ef;
  outline: 0;
}

.side-search-results {
  display: grid;
  gap: 7px;
  max-height: 395px;
  overflow-y: auto;
  padding-right: 2px;
}

.side-search-result {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid #e4e9df;
  border-radius: 9px;
  color: #202536;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.side-search-result:hover,
.side-search-result:focus-visible {
  color: #079447;
  border-color: #cfe9d8;
  background: #eefaf3;
  outline: 0;
}

.side-search-result-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.side-search-result-main strong,
.side-search-result-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-search-result-main strong {
  font-size: 11px;
  font-weight: 900;
}

.side-search-result-main small {
  color: #7b8495;
  font-size: 10px;
  font-weight: 760;
}

.side-search-price {
  color: #079447;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .workspace {
    display: block;
    grid-template-columns: 1fr;
  }

  .side-category-panel,
  body.catalog-sticky-active .side-category-panel {
    display: none;
  }
}

/* Assistant panel is the only desktop left-column block. Keep its normal and sticky widths identical. */
.workspace {
  --sidebar-width: 252px;
  --sidebar-sticky-width: 253px;
  --sidebar-cut-left: 22px;
  --side-category-offset: max(760px, calc(100vh + 32px));
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.catalog-left-spacer,
body.catalog-sticky-active .catalog-left-spacer {
  width: var(--sidebar-sticky-width);
  overflow-anchor: none;
}

.assistant-panel {
  position: static;
  grid-column: 1;
  grid-row: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(var(--sidebar-cut-left));
  overflow-anchor: none;
}

body.catalog-sticky-active .assistant-panel {
  position: static;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(var(--sidebar-cut-left));
}

.side-category-panel {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  overflow-anchor: none;
}

body.catalog-sticky-active .side-category-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-sticky-control {
  left: calc(max(5px, var(--catalog-side-gap)) + var(--sidebar-width) + 33px);
}

.assistant-card {
  padding: 18px 12px 16px;
  border-radius: 20px;
}

.assistant-head {
  gap: 8px;
}

.assistant-title {
  font-size: 15px;
}

.assistant-desc {
  margin-bottom: 13px;
  font-size: 12px;
}

.feature-list {
  gap: 8px;
}

.feature-item {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 60px;
  padding: 8px;
}

.feature-icon,
.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-text strong {
  font-size: 12px;
}

.feature-text span {
  font-size: 10.5px;
}

.preview-badge,
.item-badge {
  padding: 0 7px;
  font-size: 10.5px;
}

.assistant-primary-btn,
.assistant-secondary-btn {
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .workspace {
    display: block;
    grid-template-columns: 1fr;
  }

  .assistant-panel,
  body.catalog-sticky-active .assistant-panel,
  .side-category-panel,
  body.catalog-sticky-active .side-category-panel {
    display: none;
  }
}

/* Shopping list drawer redesign. Scoped to the basket section only. */
.basket-section {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1200;
  display: none;
  width: min(650px, 100vw);
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  border-left: 1px solid #e5e9f0;
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 70px rgba(20, 28, 45, 0.18);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.22s ease;
  overflow: hidden;
  contain: layout paint;
}

body.cart-open .basket-section {
  display: block;
  transform: translate3d(0, 0, 0);
}

body.cart-open .topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  transform: none;
}

/* Login button icon and hover polish */
.login-button {
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.login-button::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  background: currentColor;
  vertical-align: -3px;
  transform-origin: 50% 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.6' r='4.1'/%3E%3Cpath d='M4.8 20.2c0-4.1 3.2-7 7.2-7s7.2 2.9 7.2 7'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.6' r='4.1'/%3E%3Cpath d='M4.8 20.2c0-4.1 3.2-7 7.2-7s7.2 2.9 7.2 7'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
}

.login-button:hover,
.login-button:focus-visible {
  color: #079447;
  border-color: #bde7cd;
  background: #eefaf3;
  box-shadow: 0 8px 20px rgba(7, 148, 71, 0.14);
  outline: 0;
}

.login-button:hover::before,
.login-button:focus-visible::before {
  transform: scale(1.16);
}

/* Location button pin icon */
.location-button::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  background: #079447;
  vertical-align: -3px;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5A7.2 7.2 0 0 0 4.8 9.7c0 5.2 6.1 11.2 6.35 11.45a1.2 1.2 0 0 0 1.7 0C13.1 20.9 19.2 14.9 19.2 9.7A7.2 7.2 0 0 0 12 2.5Zm0 10a2.8 2.8 0 1 1 0-5.6 2.8 2.8 0 0 1 0 5.6Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5A7.2 7.2 0 0 0 4.8 9.7c0 5.2 6.1 11.2 6.35 11.45a1.2 1.2 0 0 0 1.7 0C13.1 20.9 19.2 14.9 19.2 9.7A7.2 7.2 0 0 0 12 2.5Zm0 10a2.8 2.8 0 1 1 0-5.6 2.8 2.8 0 0 1 0 5.6Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

body.cart-open .cart-backdrop {
  z-index: 1100;
}

body.cart-open .basket-section {
  z-index: 1200;
}

.basket-copy {
  display: none;
}

.basket-board {
  height: 100%;
  max-height: none;
  padding: 18px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: #fff;
}

.basket-board::before {
  content: none;
  display: none;
}

.basket-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.basket-drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #101935;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.basket-drawer-head h2 span,
.basket-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #079447;
  background: #e8f6ec;
  font-size: 13px;
  font-weight: 850;
}

.cart-close-inline {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #63708a;
  background: transparent;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.cart-close-inline:hover,
.cart-close-inline:focus-visible {
  color: #0a8f4d;
  background: #eefaf3;
  outline: 0;
}

.basket-hero-card {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  min-height: 118px;
  padding: 16px 18px;
  border: 1px solid #9edfb7;
  border-radius: 10px;
  background:
    radial-gradient(circle at 84% 50%, rgba(13, 159, 84, 0.1), transparent 28%),
    linear-gradient(105deg, #f7fffa 0%, #f2fff7 57%, #fbfffc 100%);
  overflow: visible;
}

.basket-hero-card div {
  min-width: 0;
}

.basket-hero-card strong {
  display: inline-flex;
  margin-right: 8px;
  color: #111936;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 950;
}

.basket-hero-card span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #dbe2eb;
  border-radius: 999px;
  color: #667085;
  background: #f7f8fa;
  font-size: 11px;
  line-height: 1;
  font-weight: 820;
}

.basket-hero-card .basket-badge {
  position: relative;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border-color: #e4e8ef;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.basket-hero-card b {
  display: block;
  margin-top: 10px;
  color: #0a9850;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.basket-hero-card small {
  display: block;
  margin-top: 10px;
  color: #394257;
  font-size: 12px;
  font-weight: 850;
}

.basket-hero-card .basket-saving-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.basket-hero-card .basket-saving-line > span {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.basket-hero-card small.negative {
  color: #c4322b;
}

.basket-hero-card small em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 950;
}

.basket-info-dot {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-left: 0;
  padding: 0;
  border: 2px solid #7b8497;
  border-radius: 999px;
  color: #7b8497;
  background: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  vertical-align: middle;
  cursor: help;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.basket-info-dot:hover,
.basket-info-dot:focus-visible {
  color: #079447;
  border-color: #079447;
  outline: 0;
}

.basket-info-dot.basket-info-mixed {
  line-height: 0;
  font-size: 0;
}

.basket-info-dot.basket-info-mixed::before {
  content: "";
  display: block;
  width: 4px;
  height: 10px;
  flex: 0 0 4px;
  background:
    radial-gradient(circle at 50% 1.5px, currentColor 0 1.5px, transparent 1.6px),
    linear-gradient(currentColor, currentColor) center bottom / 2px 6px no-repeat;
}

.basket-info-wrapper {
  position: relative;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
}

.basket-info-popover {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(420px, calc(100vw - 48px));
  min-height: 116px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #111936;
  background: #fff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.08);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.basket-info-popover::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.basket-info-wrapper:hover .basket-info-popover,
.basket-info-wrapper:focus-within .basket-info-popover,
.basket-info-wrapper.is-open .basket-info-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.basket-info-wrapper-saving .basket-info-popover {
  left: 50%;
}

.basket-info-wrapper-saving .basket-info-popover::before {
  left: 50%;
}

.basket-popover-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(7, 148, 71, 0.18);
  overflow: hidden;
}

.basket-popover-icon::before {
  content: none;
}

.basket-popover-icon img {
  display: block;
  width: 116px;
  height: 116px;
  min-width: 116px;
  max-width: none;
  object-fit: contain;
}

.basket-popover-icon-mixed {
  background: transparent;
}

.basket-popover-icon-saving {
  background: transparent;
  aspect-ratio: 1;
  line-height: 0;
}

.basket-popover-icon-saving img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  object-fit: contain;
  object-position: 50% 50%;
}

.basket-info-popover .basket-popover-content {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.basket-info-popover .basket-popover-content strong,
.basket-info-popover .basket-popover-content small {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.basket-info-popover .basket-popover-content strong {
  margin: 0 0 8px;
  color: #111936;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.basket-info-popover .basket-popover-content small {
  margin: 0;
  color: #48546a;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}

.basket-tooltip-arrow {
  color: #667085;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.basket-hero-card p {
  max-width: 430px;
  margin: 7px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 780;
}

.basket-hero-card img {
  justify-self: end;
  width: 82px;
  height: 82px;
  padding: 16px;
  border-radius: 8px;
  object-fit: contain;
  background: linear-gradient(180deg, #21ba6d, #079447);
  box-shadow: 0 18px 34px rgba(7, 148, 71, 0.2);
}

.basket-actions {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 62px;
  gap: 10px;
}

.basket-primary-action,
.basket-secondary-action,
.basket-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 930;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.basket-primary-action {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #10ad5f, #078b49);
  box-shadow: 0 10px 20px rgba(7, 148, 71, 0.18);
  font-size: 0;
}

.basket-secondary-action,
.basket-icon-action {
  border: 1px solid #dfe5ec;
  color: #079447;
  background: #fff;
}

.basket-primary-action::after,
.basket-secondary-action::before,
.basket-icon-action::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: var(--basket-action-mask) center / contain no-repeat;
  mask: var(--basket-action-mask) center / contain no-repeat;
}

.basket-primary-action::before {
  content: "РЎРєР°С‡Р°С‚СЊ СЃРїРёСЃРѕРє";
  font-size: 13px;
  line-height: 1;
}

.basket-primary-action::after {
  --basket-action-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.basket-secondary-action::before {
  --basket-action-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.6 6.8-4.2'/%3E%3Cpath d='m8.6 13.4 6.8 4.2'/%3E%3C/svg%3E");
}

.basket-icon-action {
  font-size: 0;
}

.basket-icon-action::before {
  --basket-action-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");
}

.basket-primary-action:hover,
.basket-primary-action:focus-visible,
.basket-secondary-action:hover,
.basket-secondary-action:focus-visible,
.basket-icon-action:hover,
.basket-icon-action:focus-visible {
  outline: 0;
  filter: brightness(0.98);
}

.basket-store-section,
.basket-cost-section,
.basket-list-section {
  display: grid;
  gap: 14px;
}

.basket-store-section h3,
.basket-cost-section h3,
.basket-list-section h3 {
  margin: 0;
  color: #667085;
  font-size: 18px;
  font-weight: 900;
}

.basket-store-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.basket-store-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
  color: #121a35;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.basket-store-chip.active {
  color: #078b49;
  border-color: #86d3a4;
  background: #f3fff7;
}

.basket-store-chip.disabled {
  color: #8a93a3;
  background: #fbfcfd;
  cursor: not-allowed;
}

.basket-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #fff;
  background: #13a65e;
  font-size: 11px;
}

.basket-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 32px;
  color: #101935;
  font-size: 12px;
  font-weight: 820;
}

.basket-toggle-row input {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d9dee7;
  box-shadow: inset 0 0 0 2px #d9dee7;
  cursor: pointer;
}

.basket-toggle-row input::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 3px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.16s ease;
}

.basket-toggle-row input:checked {
  background: #11a75d;
  box-shadow: inset 0 0 0 2px #11a75d;
}

.basket-toggle-row input:checked::after {
  transform: translateX(14px);
}

.basket-cost-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.basket-cost-card {
  position: relative;
  display: block;
  appearance: none;
  text-align: left;
  min-width: 126px;
  min-height: 88px;
  padding: 13px 14px 20px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.basket-cost-card:hover,
.basket-cost-card:focus-visible {
  border-color: #9ed9b4;
  outline: 0;
}

.basket-cost-card.active,
.basket-cost-card.best {
  border-color: #62c88b;
  background: linear-gradient(180deg, #f7fffa, #ffffff);
}

.basket-cost-card.active {
  box-shadow: 0 0 0 1px rgba(16, 164, 90, 0.15);
}

.basket-cost-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

.basket-cost-card.active span,
.basket-cost-card.best span {
  color: #079447;
}

.basket-cost-card strong {
  display: block;
  margin-top: 6px;
  color: #101935;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.basket-cost-card small {
  display: block;
  margin-top: 4px;
  color: #697386;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
}

.basket-cost-card em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  min-height: 18px;
  color: #fff;
  background: #10a45a;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
}

.basket-cost-card.best small {
  color: #697386;
}

.basket-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.basket-list-title span {
  color: #7a8496;
  font-size: 12px;
  font-weight: 780;
}

.basket-items {
  display: grid;
  gap: 0;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  overflow: hidden;
}

.basket-list-row {
  display: grid;
  grid-template-columns: 22px 38px minmax(0, 1fr) 66px 78px 178px 24px;
  align-items: center;
  gap: 7px;
  min-height: 78px;
  padding: 8px 9px;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
}

.basket-list-row > * {
  min-width: 0;
}

.basket-list-row:nth-child(3) {
  background: #fff9e9;
}

.basket-list-row:last-child {
  border-bottom: 0;
}

.basket-list-row.missing .basket-row-price strong {
  color: #f04438;
}

.basket-row-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #14a65e;
  border-radius: 4px;
  color: #fff;
  background: #14a65e;
  font-size: 12px;
  font-weight: 900;
}

.basket-row-photo {
  width: 34px;
  height: 44px;
  object-fit: contain;
}

.basket-row-main {
  min-width: 0;
}

.basket-row-main strong,
.basket-row-main small,
.basket-row-price strong,
.basket-row-price small {
  display: block;
}

.basket-row-main strong {
  overflow: hidden;
  color: #182033;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.basket-row-main small,
.basket-row-price small {
  margin-top: 4px;
  color: #697386;
  font-size: 11px;
  font-weight: 780;
}

.basket-row-qty {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 66px;
  min-height: 28px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: #fff;
}

.basket-row-qty .qty-button {
  width: 23px;
  min-height: 24px;
  border: 0;
  color: #667085;
  background: transparent;
}

.basket-row-qty strong {
  min-width: 20px;
  text-align: center;
  font-size: 12px;
}

.basket-row-price strong {
  color: #182033;
  font-size: 12px;
  font-weight: 950;
}

.basket-row-stores {
  min-width: 0;
  width: 100%;

  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));

  border: 1px solid #edf0f5;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 155, 80, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf6 100%);

  overflow: hidden;
}

.basket-store-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  color: #fff;
  background: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}

.basket-store-price {
  position: relative;

  min-width: 0;
  min-height: 52px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 7px 6px;

  border-right: 1px solid #edf0f5;
  background: #ffffff;

  text-align: center;

  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.basket-store-price:last-child {
  border-right: 0;
}

.basket-store-top {
  min-width: 0;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  color: #667085;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.basket-store-icon {
  width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 18px;
  font-style: normal;
}

.basket-store-icon img,
.basket-store-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.basket-store-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basket-store-value {
  display: block;

  color: #101828;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
}

.basket-store-price.active {
  background: #f3fff8;
  box-shadow: inset 0 0 0 1px rgba(0, 152, 70, 0.22);
}

.basket-store-price.active .basket-store-name,
.basket-store-price.active .basket-store-value {
  color: #009846;
}

.basket-store-price.best::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;

  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #009846;
}

.basket-store-price.best .basket-store-value {
  color: #009846;
}

.basket-store-price.missing {
  background: #fafafa;
}

.basket-store-price.missing .basket-store-top,
.basket-store-price.missing .basket-store-value {
  color: #a0a8b5;
}

.basket-store-price.disabled {
  opacity: 0.42;
}

@media (max-width: 760px) {
  .basket-row-stores {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .basket-store-price {
    min-height: 52px;
  }
}

/* Final cascade boundary for the approved integrated drawer. */
body .basket-section{width:min(796px,100vw);max-width:100vw;padding:0;overflow:hidden;background:#fff}
body .basket-section .basket-board{height:100%;max-height:none;padding:0 30px;display:flex;flex-direction:column;gap:0;overflow:hidden;background:#fff}
body .basket-section .basket-drawer-head{height:63px;min-height:63px;padding:0;border-bottom:1px solid #e2e7e4}
body .basket-section .basket-drawer-head h2{margin:0;color:#101828;font-size:25px;line-height:1;font-weight:800}
body .basket-section .cart-close-inline{width:32px;min-height:32px;padding:0;border:0;color:#101828;background:transparent;font-size:27px}
body .basket-section .basket-price-table{display:block;min-height:0;flex:1 1 auto;overflow:auto}
body .basket-section .basket-approved-footer{position:static;margin:0;padding:0;background:#fff;box-shadow:none}
@media(max-width:796px){body .basket-section .basket-board{padding:0 16px}}

@media (max-width: 430px) {
  .basket-row-stores {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .basket-row-stores::-webkit-scrollbar {
    display: none;
  }

  .basket-store-price {
    flex: 0 0 90px;
  }
}

.basket-row-remove {
  grid-column: auto;
  display: grid;
  place-items: center;
  width: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 7px;
  color: #8a93a3;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.basket-row-remove:hover,
.basket-row-remove:focus-visible {
  color: #f04438;
  background: #fff1f0;
  outline: 0;
}

.basket-summary-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr minmax(150px, 190px) auto;
  align-items: center;
  gap: 14px;
  margin: auto -20px 0;
  padding: 16px 20px;
  border-top: 1px solid #eef1f4;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.basket-summary-footer div strong,
.basket-summary-footer div span {
  display: block;
}

.basket-summary-footer div strong {
  color: #667085;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 880;
}

.basket-summary-footer div span {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 780;
}

.basket-footer-action {
  justify-self: stretch;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #10ad5f, #078b49);
  box-shadow: 0 10px 20px rgba(7, 148, 71, 0.18);
  font-size: 13px;
  line-height: 1;
  font-weight: 930;
  cursor: pointer;
}

.basket-footer-action:hover,
.basket-footer-action:focus-visible {
  filter: brightness(0.98);
  outline: 0;
}

.basket-summary-footer > strong {
  justify-self: end;
  color: #0a9850;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.basket-empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed #dbe3ea;
  border-radius: 10px;
  color: #697386;
  background: #fbfcfd;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 720px) {
  .basket-section {
    width: 100vw;
  }

  .basket-board {
    padding: 16px 14px 0;
  }

  .basket-actions,
  .basket-summary-footer {
    grid-template-columns: 1fr;
  }

  .basket-cost-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .basket-list-row {
    grid-template-columns: 24px 42px minmax(0, 1fr) 28px;
  }

  .basket-row-qty,
  .basket-row-price,
  .basket-row-stores {
    grid-column: 3 / 5;
    justify-content: start;
  }

  .basket-row-stores {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    width: 100%;
  }

  .basket-summary-footer {
    margin-right: -14px;
    margin-left: -14px;
  }

  .basket-hero-card {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding: 14px;
  }

  .basket-info-popover {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 24px;
    left: 16px;
    width: auto;
    min-height: auto;
    padding: 20px;
    gap: 14px;
    border-radius: 16px;
    transform: translateY(12px);
  }

  .basket-info-wrapper-saving .basket-info-popover {
    left: 16px;
  }

  .basket-info-popover::before {
    display: none;
  }

  .basket-info-wrapper:hover .basket-info-popover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }

  .basket-info-wrapper.is-open .basket-info-popover,
  .basket-info-wrapper:focus-within .basket-info-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .basket-popover-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    min-height: 56px;
  }

  .basket-info-popover .basket-popover-content strong {
    font-size: 16px;
  }

  .basket-info-popover .basket-popover-content small {
    font-size: 12px;
  }
}

/* Global site scale */
body {
  zoom: 0.9;
}

/* Stable hero search button hover */
:root {
  --site-primary-button-color: #fff;
  --site-primary-button-border-color: #fff;
  --site-primary-button-border: 0;
  --site-primary-button-normal-background: linear-gradient(180deg, #15b866 0%, #08a857 100%);
  --site-primary-button-normal-shadow: 0 10px 22px rgba(18, 168, 90, 0.28);
  --site-primary-button-hover-background: linear-gradient(180deg, #15b866 0%, #08a857 100%);
  --site-primary-button-hover-shadow: 0 13px 26px rgba(18, 168, 90, 0.34);
  --site-primary-button-active-background: linear-gradient(180deg, #15b866 0%, #08a857 100%);
  --site-primary-button-active-shadow: 0 8px 18px rgba(18, 168, 90, 0.24);
  --site-primary-button-focus-outline: 0;
  --site-primary-button-focus-outline-offset: 0;
  --site-primary-button-disabled-opacity: 0.58;
}

.hero .search-shell .primary-button,
.hero .search-shell .primary-button:visited {
  color: var(--site-primary-button-color) !important;
  border-color: var(--site-primary-button-border-color) !important;
  background: var(--site-primary-button-normal-background) !important;
  background-image: var(--site-primary-button-normal-background) !important;
  transition: box-shadow 0.18s ease, filter 0.18s ease !important;
}

.hero .search-shell #clearSearch {
  border-radius: 15px !important;
  clip-path: none;
}

.hero .search-shell .primary-button:hover,
.hero .search-shell .primary-button:focus-visible {
  color: var(--site-primary-button-color) !important;
  border-color: var(--site-primary-button-border-color) !important;
  background: var(--site-primary-button-hover-background) !important;
  background-image: var(--site-primary-button-hover-background) !important;
  box-shadow: var(--site-primary-button-hover-shadow);
  transform: none !important;
  filter: none;
  outline: var(--site-primary-button-focus-outline);
  outline-offset: var(--site-primary-button-focus-outline-offset);
}

.hero .search-shell .primary-button:active {
  background: var(--site-primary-button-active-background) !important;
  background-image: var(--site-primary-button-active-background) !important;
  transform: none !important;
}

/* Fine alignment: move hero text and main search 4px left without shifting the visual. */
.hero .hero-copy {
  transform: translateX(-4px);
}

/* Fine alignment: move top menu logo 2px left without moving nav/actions. */
.topbar .brand {
  transform: translateX(-2px);
}

/* Shared page container: align header, hero, and catalog on one centered grid. */
.topbar,
.hero,
.dashboard,
.workspace {
  --page-container-max: 1480px;
  --page-container-pad: 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-container-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-container-pad);
  padding-left: var(--page-container-pad);
}

.hero .hero-copy {
  transform: none;
}

.topbar,
.hero {
  max-width: var(--page-container-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-container-pad);
  padding-left: var(--page-container-pad);
}

.hero {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: max(var(--page-container-pad), calc((100vw - 1332px) / 2 + 22px));
  padding-left: max(var(--page-container-pad), calc((100vw - 1332px) / 2 + 22px));
}

.topbar {
  gap: clamp(14px, 1.35vw, 24px);
  overflow: visible;
  isolation: isolate;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: 0;
  border-bottom: 1px solid #e8ece5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar .brand {
  flex: 0 0 auto;
  transform: none;
}

.topbar .nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(12px, 1.15vw, 22px);
  overflow: visible;
  white-space: nowrap;
}

.topbar .top-actions {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.hero {
  overflow: visible;
}

.hero-visual {
  left: 0;
  right: 0;
  overflow: hidden;
}

.hero-visual img {
  overflow: visible;
}

/* Hero wave preview: CSS background + separate product image layer. */
body {
  background: #ecf2e9;
}

.workspace::before {
  background: #ecf2e9;
}

.hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 55%, rgba(7, 155, 80, 0.13) 0%, rgba(7, 155, 80, 0.06) 30%, rgba(7, 155, 80, 0) 58%),
    radial-gradient(ellipse at 4% 92%, rgba(7, 155, 80, 0.08) 0%, rgba(7, 155, 80, 0.035) 34%, rgba(7, 155, 80, 0) 62%),
    linear-gradient(180deg, #f9fbf7 0%, #f5f8f1 56%, #ecf2e9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.70), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 46%);
}

.hero-decor {
  position: absolute;
  right: 7%;
  top: 64px;
  z-index: 1;
  width: 440px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 45%, rgba(7, 155, 80, 0.12), rgba(7, 155, 80, 0.03) 48%, transparent 68%);
  filter: blur(1px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-visual.hero-media {
  position: relative;
  inset: auto;
  z-index: 3;
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  overflow: visible;
  pointer-events: none;
}

.hero-products,
.hero-visual.hero-media .hero-products {
  position: relative;
  inset: auto;
  display: block;
  width: min(620px, 42vw);
  max-width: 100%;
  max-height: 305px;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center right;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  mix-blend-mode: normal;
  transform: translateX(-1px);
}

.hero-visual.hero-media .price-float {
  display: none;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 155px;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.workspace {
  --sidebar-width: 276px;
  --sidebar-sticky-width: 276px;
  --catalog-layout-gap: 11px;
  --sidebar-cut-left: 0px;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--catalog-layout-gap);
  margin-top: -49px;
  padding-bottom: 18px;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.catalog-panel {
  position: relative;
  z-index: 7;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-top: -36px;
  padding: 18px;
  overflow: visible;
  border: 1px solid #e3eadf;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(17, 24, 39, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  row-gap: 3px;
  column-gap: 11px;
}

.assistant-panel {
  margin-top: -36px;
}

.catalog-nav,
.catalog-filter-panel,
.product-grid {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.catalog-nav,
.catalog-filter-panel {
  position: relative;
}

.catalog-filter-panel {
  border-color: transparent;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.catalog-nav::after,
.catalog-filter-panel::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -12px;
  left: 1px;
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
  pointer-events: none;
}

.catalog-filter-panel::after {
  display: none;
}

.catalog-nav,
.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel,
.product-grid {
  margin-top: 0;
  margin-bottom: 0;
}

.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel {
  margin-bottom: 0;
}

.category-list.category-strip {
  gap: 12px;
}

.product-grid {
  gap: 12px;
  padding-right: 11px;
}

/* Filter row polish: compact premium controls without changing the catalog layout. */
.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-panel-head h2,
:is(.catalog-filter-panel, .recipes-sort-control) .filter-reset,
:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort h3,
:is(.catalog-filter-panel, .recipes-sort-control) .price-filter-scale {
  display: none;
}

.filter-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.filter-dropdown summary,
:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-price,
.catalog-sort-select {
  min-height: 42px;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  color: #152033;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.025);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.filter-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.filter-dropdown summary small {
  display: none;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 1px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: rotate(45deg) translateY(-2px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.filter-dropdown summary:hover,
.filter-dropdown[open] summary,
.catalog-sort-select:hover,
.catalog-sort-select:focus-visible {
  border-color: rgba(18, 168, 90, 0.34);
  background-color: #fbfffc;
}

.catalog-filter-panel .filter-group-price:focus-within {
  border-color: #e4e9ef;
  background-color: #ffffff;
}

.filter-dropdown summary:hover::after,
.filter-dropdown[open] summary::after {
  border-color: #12a85a;
}

.filter-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.filter-dropdown-menu {
  top: calc(100% + 8px);
  border-color: #e4e9ef;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.14);
}

.catalog-filter-panel .filter-group-price {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 334px;
  margin: 0;
  padding: 0 14px;
}

.catalog-filter-panel .filter-group-price h3 {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #152033;
  background: transparent;
  font: inherit;
}

.catalog-filter-panel .price-filter {
  --price-filter-fill: 100%;
  width: 164px;
  height: 4px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #12a85a;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.catalog-filter-panel .price-filter::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #12a85a 0%, #12a85a var(--price-filter-fill), #e5ece7 var(--price-filter-fill), #e5ece7 100%);
  box-shadow: none;
}

.catalog-filter-panel .price-filter::-webkit-slider-thumb {
  width: 13.5px;
  height: 13.5px;
  margin-top: -4.75px;
  border: 0;
  border-radius: 50%;
  background: #12a85a;
  box-shadow: none;
  -webkit-appearance: none;
}

.catalog-filter-panel .price-filter::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #e5ece7;
  box-shadow: none;
}

.catalog-filter-panel .price-filter::-moz-range-progress {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: #12a85a;
  box-shadow: none;
}

.catalog-filter-panel .price-filter::-moz-range-thumb {
  width: 13.5px;
  height: 13.5px;
  border: 0;
  border-radius: 50%;
  background: #12a85a;
  box-shadow: none;
}

body.test-page .catalog-filter-panel #priceRangeFilter:focus-visible {
  outline: 0;
}

.catalog-filter-panel .price-filter:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(7, 148, 71, 0.24);
}

.catalog-filter-panel .price-filter:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(7, 148, 71, 0.24);
}

.price-manual-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 4px 0 4px 8px;
  border: 0;
  border-radius: 0;
  color: #778195;
  background: transparent;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
  white-space: nowrap;
}

.price-manual-field input {
  width: 54px;
  min-height: 0;
  box-sizing: border-box;
  padding: 0 5px 0 0;
  border: 0;
  color: #12a85a;
  background: transparent;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  outline: 0;
  appearance: textfield;
}

.price-manual-field input:focus-visible {
  outline: 0;
}

.price-manual-value {
  position: relative;
  left: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 58px;
  height: 22px;
  max-height: 22px;
  border-radius: 4px;
  line-height: 12px;
}

.price-manual-value > input {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 12px;
}

.price-manual-value > span {
  position: relative;
  left: -5px;
  line-height: 12px;
}

.price-manual-value:has(input:focus-visible) {
  outline: 2px solid rgba(7, 148, 71, 0.34);
  outline-offset: 0;
}

.price-manual-field input::-webkit-outer-spin-button,
.price-manual-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort {
  flex: 0 0 auto;
  margin-left: auto;
}

.catalog-sort-select {
  width: auto;
  min-width: 210px;
  max-width: max-content;
  padding: 0 38px 0 15px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.catalog-sort-select:hover,
.catalog-sort-select:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6L10 2' fill='none' stroke='%2312a85a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  outline: 0;
}

@media (max-width: 860px) {
  .catalog-filter-panel,
  body.catalog-sticky-active .catalog-filter-panel {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .catalog-filter-panel::-webkit-scrollbar {
    display: none;
  }

  .filter-dropdown,
  .filter-dropdown summary,
  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-price,
  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort,
  .catalog-sort-select {
    width: auto;
  }

  .catalog-filter-panel .filter-group-price {
    min-width: 280px;
  }

  :is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort {
    margin-left: 0;
  }
}


.catalog-nav {
  margin-bottom: 14px;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option:has(input:checked) {
  color: #202536;
  border-color: #dfe6dc;
  background: #ffffff;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option:hover,
:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option:focus-within,
.recipe-price-controls .filter-option:hover,
.recipe-price-controls .filter-option:focus-within,
:is(.catalog-filter-panel, .recipes-sort-control) .sort-dropdown-menu .sort-filter-option:hover,
:is(.catalog-filter-panel, .recipes-sort-control) .sort-dropdown-menu .sort-filter-option:focus-visible {
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option:has(input:checked):hover,
:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option:has(input:checked):focus-within {
  color: #202536;
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
}

/* Store filter: use a local checkbox so native pressed-state colours cannot flash. */
.catalog-filter-panel .filter-group-stores .filter-option input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  flex: 0 0 13px;
  border: 1px solid #c8d1cb;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 9px 9px;
  box-shadow: none;
  cursor: pointer;
}

.catalog-filter-panel .filter-group-stores .filter-option input[type="checkbox"]:checked {
  border-color: #bde5c9;
  background-color: #def4e5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 6.1 2.4 2.4L10 3.1' fill='none' stroke='%23087c3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.catalog-filter-panel .filter-group-stores .filter-option input[type="checkbox"]:not(:checked):active {
  border-color: #c8d1cb;
  background-color: #fff;
}

.catalog-filter-panel .filter-group-stores .filter-option input[type="checkbox"]:checked:active {
  border-color: #bde5c9;
  background-color: #def4e5;
}

.catalog-filter-panel .filter-group-stores .filter-option input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(7, 148, 71, 0.32);
  outline-offset: 2px;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-dropdown-menu .filter-option input {
  accent-color: #079447;
}

:is(.catalog-filter-panel, .recipes-sort-control) .catalog-sort-select[hidden] {
  display: none;
}

:is(.catalog-filter-panel, .recipes-sort-control) .sort-dropdown {
  position: relative;
  flex: 0 0 auto;
}

:is(.catalog-filter-panel, .recipes-sort-control) .filter-group-sort .sort-dropdown {
  margin-left: auto;
}

:is(.catalog-filter-panel, .recipes-sort-control) .sort-dropdown summary {
  min-width: 210px;
  justify-content: space-between;
  padding: 0 14px 0 15px;
}

:is(.catalog-filter-panel, .recipes-sort-control) .sort-dropdown-menu {
  right: 0;
  left: auto;
  width: 238px;
}

:is(.catalog-filter-panel, .recipes-sort-control) .sort-filter-option {
  justify-content: flex-start;
  width: 100%;
  border-color: #dfe6dc;
  background: #ffffff;
  text-align: left;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:is(.catalog-filter-panel, .recipes-sort-control) .sort-filter-option.active {
  color: #202536;
  border-color: #dfe6dc;
  background: #ffffff;
}

/* Category typography polish: text only, without changing card sizing or grid. */
.catalog-panel .category-list.category-strip .category-button,
.catalog-panel .category-list.category-strip .category-parent-row {
  align-items: center;
}

.catalog-panel .category-list.category-strip .category-name {
  align-items: center;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
  color: #172033;
}

.catalog-panel .category-list.category-strip .category-name > span:last-child {
  line-height: 1.25;
}

.catalog-panel .category-list.category-strip .category-button.active .category-name {
  color: #12a85a;
  font-weight: 800;
}

.catalog-panel .category-list.category-strip .category-toggle {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #8a94a3;
}

.catalog-panel .category-list.category-strip .category-button.active ~ .category-toggle,
.catalog-panel .category-list.category-strip .category-group.open .category-toggle {
  color: #12a85a;
}

/* Assistant panel polish: typography and soft card styling only. */
.assistant-card,
.assistant-card * {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.assistant-card {
  padding: 18px 16px;
  border: 1px solid #e4e9ef;
  border-radius: 18px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

.assistant-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.assistant-title {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  min-height: 24px;
  border-radius: 999px;
  color: #12a85a;
  background: #eaf8ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.preview-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.assistant-desc {
  margin: 0 0 16px;
  color: #6f7887;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #172033;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-text {
  min-width: 0;
  flex: 1;
}

.feature-text strong {
  display: block;
  margin: 0 0 3px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-text span {
  display: block;
  margin: 0;
  color: #7b8495;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  color: #8a94a3;
  background: #f4f6f8;
}

.assistant-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  background-color: #15b866 !important;
  background-image: linear-gradient(180deg, #15b866 0%, #08a857 100%) !important;
  box-shadow: 0 8px 17px rgba(18, 168, 90, 0.28) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.assistant-primary-btn:hover {
  background-color: #15b866 !important;
  background-image: linear-gradient(180deg, #15b866 0%, #08a857 100%) !important;
  transform: none !important;
  box-shadow: 0 8px 16px rgba(18, 168, 90, 0.3) !important;
  filter: brightness(1.02) !important;
}

.assistant-primary-btn:active {
  background-color: #15b866 !important;
  background-image: linear-gradient(180deg, #15b866 0%, #08a857 100%) !important;
  transform: none !important;
  box-shadow: 0 6px 14px rgba(18, 168, 90, 0.24) !important;
}

.assistant-primary-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Header typography polish: scoped to topbar only. */
.topbar,
.topbar * {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar .brand-text strong::after {
  color: #12a85a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.topbar .brand-text small::after {
  color: #172033;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.topbar .nav a {
  position: relative;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.topbar .nav a:hover {
  color: #12a85a;
}

.topbar .nav a.active {
  color: #12a85a;
  font-weight: 800;
}

.topbar .nav a.active::after {
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: #12a85a;
}

.topbar .location-button,
.topbar .login-button {
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.topbar .location-button:hover,
.topbar .location-button:focus-visible,
.topbar .login-button:hover,
.topbar .login-button:focus-visible {
  color: #172033;
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: none;
  outline: 0;
}

.topbar .location-button::before,
.topbar .login-button::before {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 0;
  transform-origin: 50% 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar .location-button:hover::before,
.topbar .location-button:focus-visible::before,
.topbar .login-button:hover::before,
.topbar .login-button:focus-visible::before {
  transform: scale(1.16);
}

.topbar .location-button::before {
  background: #12a85a;
}

/* Hero typography and search polish: scoped to hero only. */
.hero .hero-copy,
.hero .search-shell,
.hero .search-shell *,
.primary-button.site-search-button {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 10px;
  color: #172033;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 2.55vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero .eyebrow {
  margin: 0 0 22px;
  color: #6f7887;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero h1,
.hero .eyebrow {
  transform: translateX(7px);
}

.hero .search-shell {
  width: min(100%, 700px);
  max-width: 700px;
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  padding-left: 18px;
  border: 1px solid #e4e9ef;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero .search-shell::before {
  left: 18px;
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
}

.hero .search-box {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin-right: 0;
  margin-left: 39px;
}

.hero .search-shell input {
  height: 100%;
  min-height: 0;
  padding: 0 36px 0 12px;
  color: #172033;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.hero .search-shell input::placeholder {
  color: #8a94a3;
  font-weight: 500;
  opacity: 1;
}

.hero .search-shell .primary-button,
.primary-button.site-search-button {
  min-width: 110px;
  height: 44px;
  min-height: 44px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: var(--site-primary-button-normal-shadow);
}

.hero .search-shell .primary-button:hover,
.hero .search-shell .primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--site-primary-button-hover-shadow);
  filter: brightness(1.02);
}

.hero .search-shell .primary-button:active {
  transform: translateY(0);
  box-shadow: var(--site-primary-button-active-shadow);
}

.hero .search-shell .primary-button:disabled,
.primary-button.site-search-button:disabled {
  opacity: var(--site-primary-button-disabled-opacity);
}

.hero .search-shell #clearSearch,
.hero .search-shell #clearSearch:visited,
.primary-button.site-search-button,
.primary-button.site-search-button:visited {
  color: var(--site-primary-button-color) !important;
  border: var(--site-primary-button-border) !important;
  border-radius: 13px !important;
  background: var(--site-primary-button-normal-background) !important;
  background-image: var(--site-primary-button-normal-background) !important;
  box-shadow: var(--site-primary-button-normal-shadow) !important;
  filter: none !important;
  clip-path: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

.hero .search-shell #clearSearch:hover,
.hero .search-shell #clearSearch:focus-visible,
.primary-button.site-search-button:hover,
.primary-button.site-search-button:focus-visible {
  color: var(--site-primary-button-color) !important;
  background: var(--site-primary-button-hover-background) !important;
  background-image: var(--site-primary-button-hover-background) !important;
  box-shadow: var(--site-primary-button-hover-shadow) !important;
  transform: none !important;
  filter: brightness(1.02) !important;
  outline: var(--site-primary-button-focus-outline);
  outline-offset: var(--site-primary-button-focus-outline-offset);
}

.hero .search-shell #clearSearch:active,
.primary-button.site-search-button:active {
  color: var(--site-primary-button-color) !important;
  background: var(--site-primary-button-active-background) !important;
  background-image: var(--site-primary-button-active-background) !important;
  box-shadow: var(--site-primary-button-active-shadow) !important;
  transform: none !important;
}

/* Product card typography polish: scoped to catalog cards only. */
.product-grid .product-card,
.product-grid .product-card * {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.product-grid .product-card {
  background: #ffffff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.product-grid .product-card:hover {
  border-color: #d8e0e8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transform: none;
}

.product-grid .product-card .product-meta h3,
.product-grid .product-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-grid .product-card .product-meta p {
  margin: 4px 0 0;
  color: #7b8495;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-grid .product-card .card-best-price {
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-grid .product-card .source-badge,
.product-grid .product-card .discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-grid .product-card .source-badge.live {
  color: #12a85a;
  background: #eaf8ef;
}

.product-grid .product-card .discount-pill {
  padding-right: 7px;
  padding-left: 7px;
  color: #ff4d4f;
  background: #ffecec;
}

.product-grid .product-card .favorite-button {
  color: #9aa4b2;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.product-grid .product-card .favorite-button:hover,
.product-grid .product-card .favorite-button:focus-visible {
  color: #12a85a;
  transform: scale(1.05);
}

.catalog-sticky-control {
  left: calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad) + var(--sidebar-width) + var(--catalog-layout-gap));
  right: calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad));
  width: auto;
}

body.catalog-sticky-active .catalog-left-spacer {
  left: calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad) + var(--sidebar-cut-left));
}

@media (max-width: 1180px) {
  .topbar,
  .hero,
  .dashboard,
  .workspace {
    max-width: none;
  }

  .hero {
    padding-right: var(--page-container-pad);
    padding-left: var(--page-container-pad);
  }

  .catalog-sticky-control {
    left: calc(max(5px, var(--catalog-side-gap)) + var(--sidebar-width) + var(--catalog-layout-gap));
    right: calc(max(5px, var(--catalog-side-gap)) + 18px);
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .dashboard,
  .workspace {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 330px;
    padding-top: 42px;
    padding-bottom: 92px;
  }

  .hero-visual.hero-media {
    align-items: center;
    justify-content: flex-end;
  }

  .hero-products,
  .hero-visual.hero-media .hero-products {
    width: min(520px, 90vw);
  }

  .hero-decor {
    right: -120px;
    top: 120px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 252px;
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 70px;
  }

  .hero-visual.hero-media {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero .search-shell {
    width: min(100%, 340px);
    max-width: calc(100vw - 64px);
  }

  .hero-wave {
    height: 92px;
  }
}

/* Category cards: keep current names/icons, refresh only the card presentation. */
.catalog-panel > .catalog-nav {
  padding-right: 53px;
  padding-left: 12px;
}

.category-list.category-strip {
  padding: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-panel .category-list.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.category-strip .category-parent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: stretch;
  gap: 0;
  height: 58px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid #e1e8df;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.025);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.category-strip .category-parent-row:hover {
  transform: none;
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.04);
}

.category-strip .category-parent-row:has(.parent-category.active) {
  transform: none;
  border-color: #9ed8b5;
  background: #fbfefb;
  box-shadow: 0 8px 18px rgba(7, 155, 80, 0.08);
}

.category-strip .parent-category {
  min-height: 58px;
  height: 58px;
  padding: 9px 8px 9px 12px;
  border: 0;
  border-radius: 0;
  color: #172033;
  background: transparent;
  box-shadow: none;
}

.category-strip .parent-category:hover,
.category-strip .parent-category.active {
  color: #058947;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.category-strip .category-name {
  min-width: 0;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  color: inherit;
}

.category-strip .category-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  text-overflow: ellipsis;
}

.category-strip .category-icon,
.category-strip .category-button.category-image-card .category-icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent !important;
  color: #079b50 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  overflow: visible;
  isolation: isolate;
  opacity: 0.82;
  transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.category-strip .category-icon::before,
.category-strip .category-button.category-image-card .category-icon::before {
  content: "";
  position: absolute;
  inset: -5.5px;
  z-index: -1;
  border-radius: 999px;
  background: #e7f6eb;
  opacity: 0;
  box-shadow: none;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.category-strip .parent-category.active .category-icon,
.category-strip .category-group.open .category-icon,
.category-strip .category-parent-row:hover .category-icon {
  background: transparent !important;
  color: #078c49 !important;
  opacity: 1;
  transform: none !important;
}

.category-strip .parent-category.active .category-icon::before,
.category-strip .category-group.open .category-icon::before,
.category-strip .category-parent-row:hover .category-icon::before {
  background: #e7f6eb;
  opacity: 1;
}

.category-strip .category-icon svg,
.category-strip .category-icon .category-line-svg {
  width: 17px;
  height: 17px;
  display: block;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  transition: transform 0.16s ease;
}

.category-strip .category-img,
.category-strip .category-button.category-image-card .category-img {
  transform-origin: 50% 50%;
  transition: transform 0.16s ease;
}

.category-strip .category-parent-row:hover .category-icon svg,
.category-strip .category-parent-row:hover .category-icon .category-line-svg,
.category-strip .category-parent-row:hover .category-img {
  transform: none;
}

.category-strip .category-icon svg *,
.category-strip .category-icon .category-line-svg * {
  stroke: currentColor !important;
  fill: none !important;
}

.category-strip .category-toggle {
  align-self: stretch;
  width: 28px;
  min-height: 58px;
  border: 0;
  border-left: 1px solid transparent;
  border-radius: 0;
  color: #98a2b3;
  background: transparent;
  font-size: 17px;
  line-height: 1;
}

.category-strip .category-parent-row:hover .category-toggle,
.category-strip .category-toggle:hover,
.category-strip .category-toggle:focus-visible,
.category-strip .category-group.open .category-toggle {
  color: #079b50;
  background: transparent;
}

@media (max-width: 1180px) {
  .catalog-panel .category-list.category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalog-panel .category-list.category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-panel {
    padding: 12px;
  }

  .catalog-panel .category-list.category-strip {
    grid-template-columns: 1fr;
  }
}

/* Left category panel: keep cards compact, but let names wrap without ellipsis. */
.side-category-panel .side-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  grid-auto-rows: 67px;
}

.side-category-panel,
body.catalog-sticky-active .side-category-panel {
  box-sizing: border-box;
  width: var(--sidebar-sticky-width);
  min-width: var(--sidebar-sticky-width);
  max-width: var(--sidebar-sticky-width);
  justify-self: end;
  border-color: #e1e8df;
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 155, 80, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf6 100%);
}

.side-category-panel .side-category-button {
  height: 67px;
  min-height: 67px;
  padding: 5px 6px;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  background: #ffffff;
  overflow: visible;
}

.side-category-panel .side-category-icon,
.side-category-panel .side-category-title-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-category-panel .side-category-icon img,
.side-category-panel .side-category-title-icon img,
.side-category-panel .side-category-icon .category-img,
.side-category-panel .side-category-title-icon .category-img,
.side-category-panel .side-category-icon .category-svg,
.side-category-panel .side-category-title-icon .category-svg,
.side-category-panel .side-category-icon .category-line-svg,
.side-category-panel .side-category-title-icon .category-line-svg {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.side-category-panel .side-category-button > span:last-child {
  max-width: 100%;
  display: block;
  overflow: visible;
  color: #172033;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.2px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.side-category-panel .side-category-button.active > span:last-child,
.side-category-panel .side-category-button.is-active > span:last-child {
  color: #12a85a;
}

.side-category-panel .side-category-button:hover,
.side-category-panel .side-category-button:focus-visible {
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
}

.side-category-panel .side-category-button.active,
.side-category-panel .side-category-button.is-active {
  color: #079447;
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
  outline: 0;
}

.side-category-panel .side-subcategory-button:hover,
.side-category-panel .side-subcategory-button:focus-visible,
.side-category-panel .side-subcategory-button.active {
  color: #079447;
  border-color: transparent;
  background: #eefaf3;
  outline: 0;
}

.side-category-panel .side-search-toggle svg {
  color: #12a85a;
  stroke: currentColor;
}

.side-category-panel .side-category-head strong,
.side-category-panel .side-category-title strong {
  margin: 0;
  color: #172033;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

body.catalog-sticky-active .side-category-panel {
  left: calc(max(0px, (100% - var(--page-container-max)) / 2) + var(--page-container-pad));
}

.side-category-panel,
body.catalog-sticky-active .side-category-panel {
  position: sticky;
  top: var(--catalog-sticky-top-offset, 72px);
  left: auto;
  z-index: 80;
}

.catalog-filter-panel,
body.catalog-sticky-active .catalog-filter-panel {
  margin-bottom: 12px;
}

/* Keep the opened hero search dropdown above the catalog workspace. */
.hero {
  overflow: visible;
  z-index: 0;
}

.hero:has(.search-suggestions.open) {
  z-index: 80;
}

@supports not selector(:has(*)) {
  .hero {
    z-index: 0;
  }
}

.hero .search-shell,
.hero .search-box {
  overflow: visible;
  position: relative;
}

.hero .search-shell {
  z-index: 81;
}

.hero .search-box {
  z-index: 82;
}

.hero .search-suggestions {
  z-index: 89;
}

.topbar {
  z-index: 90;
}

/* Header zoom stability: only applies when browser zoom-out creates a very wide CSS viewport. */
@media (min-width: 1800px) {
  .topbar {
    width: 100%;
    max-width: var(--page-container-max);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--page-container-pad);
    padding-left: var(--page-container-pad);
    gap: 18px;
  }

  .topbar .brand {
    flex: 0 0 auto;
  }

  .topbar .nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 18px;
  }

  .topbar .top-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* Stable header grid: logo / navigation / actions. */
.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(18px, 1.7vw, 32px);
}

.topbar .brand {
  min-width: max-content;
  justify-self: start;
  transform: translateX(-79px) scale(0.95);
  transform-origin: left center;
}

.topbar .nav {
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  gap: clamp(16px, calc(1.25vw + 2px), 30px);
}

.topbar .nav a {
  white-space: nowrap;
}

.topbar .top-actions {
  min-width: max-content;
  justify-self: end;
  margin-left: 0;
  transform: translateX(79px);
  transform-origin: right center;
}

/* Stable hero grid: full-width background, container-bound content and image. */
.hero {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  display: grid;
  grid-template-columns:
    minmax(var(--page-container-pad), 1fr)
    minmax(0, 690px)
    minmax(24px, 40px)
    minmax(360px, 702px)
    minmax(var(--page-container-pad), 1fr);
  column-gap: 0;
  align-items: center;
}

.hero .hero-copy {
  grid-column: 2;
  max-width: 690px;
  min-width: 0;
  justify-self: stretch;
}

.hero .search-shell {
  width: 100%;
  max-width: 605px;
}

.hero-visual.hero-media {
  grid-column: 4;
  width: 100%;
  min-width: 0;
  justify-self: end;
}

.hero-products,
.hero-visual.hero-media .hero-products {
  width: min(620px, 100%);
  max-width: 100%;
  transform: translateX(-1px);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns:
      var(--page-container-pad)
      minmax(0, 1fr)
      var(--page-container-pad);
  }

  .hero .hero-copy,
  .hero-visual.hero-media {
    grid-column: 2;
  }

  .hero .search-shell {
    max-width: 100%;
  }

  .hero-visual.hero-media {
    justify-content: center;
  }

  .hero-products,
  .hero-visual.hero-media .hero-products {
    width: min(520px, 100%);
  }
}

/* Stable hero/catalog vertical rhythm: keep catalog below the hero search. */
.workspace {
  margin-top: -86px;
}

.catalog-panel,
.assistant-panel {
  margin-top: 0;
}

/* Raise hero content without changing the stabilized horizontal grid. */
@media (min-width: 901px) {
  .hero .hero-copy,
  .hero-visual.hero-media {
    transform: translateY(-21px);
  }

  .hero .hero-copy {
    transform: translateY(-57px);
  }
}

/* Blend the raised catalog field into the hero instead of showing a hard left edge. */
body {
  background: #e3efdf;
}

.hero {
  background:
    radial-gradient(ellipse at 4% 92%, rgba(7, 155, 80, 0.08) 0%, rgba(7, 155, 80, 0.035) 34%, rgba(7, 155, 80, 0) 62%),
    linear-gradient(180deg, #f9fbf7 0%, #f5f8f1 56%, #e3efdf 100%);
}

.hero-wave path {
  fill: #e3efdf;
}

.hero-decor {
  right: auto;
  left: calc(50% + 350px);
  top: 78px;
  width: 520px;
  height: 260px;
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 155, 80, 0.13) 0%, rgba(7, 155, 80, 0.06) 38%, rgba(7, 155, 80, 0) 70%);
}

.workspace::before {
  display: none;
}

@media (max-width: 900px) {
  .hero-decor {
    left: 50%;
    top: 112px;
    transform: translateX(-50%);
  }
}

.catalog-panel .category-list.category-strip .category-icon::before {
  inset: -6.5px;
}

.catalog-panel .category-list.category-strip .category-icon > svg,
.catalog-panel .category-list.category-strip .category-icon > .category-line-svg,
.catalog-panel .category-list.category-strip .category-icon > .category-img {
  transform: scale(1.15) !important;
  transform-origin: 50% 50%;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > svg,
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > .category-line-svg,
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > .category-img {
  transform: scale(1.15) !important;
}

/* Site footer */
.site-footer {
  margin-top: 0;
  color: #101b35;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  font-family: inherit;
}

.footer-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 24px 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.32fr 0.96fr 0.96fr 1.22fr minmax(350px, 1.62fr);
  align-items: stretch;
}

.footer-col {
  padding: 0 30px;
  border-left: 1px solid rgba(16, 27, 53, 0.1);
}

.footer-brand {
  padding-right: 34px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-width: 224px;
  color: #079447;
  text-decoration: none;
}

.footer-logo-mark {
  position: relative;
  width: 36px;
  height: 40px;
  overflow: visible;
  border-radius: 10px;
  background: linear-gradient(180deg, #0aa652 0%, #008944 100%);
  box-shadow: 0 8px 18px rgba(0, 139, 68, 0.18);
}

.footer-logo-mark::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -8px;
  width: 15px;
  height: 16px;
  border: 4px solid #079447;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.footer-logo-mark::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo-name {
  color: #079447;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: 0;
}

.footer-logo-subtitle {
  margin-top: 0;
  color: #4d5568;
  font-size: 12px;
  font-weight: 750;
}

.footer-description {
  max-width: 285px;
  margin: 0;
  color: #6f7887;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 27, 53, 0.1);
  border-radius: 50%;
  color: #16213a;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(16, 27, 53, 0.04);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.footer-title {
  margin: 0 0 16px;
  color: #172033;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-bottom-links a {
  color: #6f7887;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a {
  font-size: 15px;
  line-height: 1.38;
}

.footer-links a:hover,
.footer-bottom-links a:hover {
  color: #08a857;
}

.footer-app {
  padding-right: 0;
}

.footer-app-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 224px;
  overflow: hidden;
  border: 1px solid rgba(16, 27, 53, 0.06);
  border-radius: 20px;
  background: #f4faf5;
  box-shadow: 0 20px 50px rgba(26, 74, 49, 0.08);
}

.footer-app-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center top;
  pointer-events: none;
  user-select: none;
}

.footer-app-content {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 18px 0 0 20px;
}

.footer-app-title {
  margin: 0 0 9px;
  color: #101b35;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.footer-app-text {
  max-width: 210px;
  margin: 0 0 10px;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 152px;
  align-items: flex-start;
  margin-left: 0;
}

.footer-app .footer-store-buttons {
  margin-top: -2px;
}

.footer-store-button {
  display: grid;
  place-items: center;
  width: 152px;
  height: 42px;
  padding: 6px 11px;
  margin-left: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(16, 27, 53, 0.1);
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 27, 53, 0.055);
  text-decoration: none;
}

.footer-store-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 1.25fr 1.05fr;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(16, 27, 53, 0.1);
  color: #6f7887;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-copy {
  line-height: 1.45;
}

.footer-location {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  line-height: 1.38;
}

.pin-icon {
  margin-top: 2px;
  color: #08a857;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  white-space: nowrap;
}

.footer-bottom-links a {
  position: relative;
  color: #6f7887;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-bottom-links a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -18px;
  width: 1px;
  height: 18px;
  background: rgba(16, 27, 53, 0.1);
  transform: translateY(-50%);
}

.footer-safe {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  justify-self: end;
  gap: 12px;
  color: #667085;
  line-height: 1.38;
  white-space: nowrap;
}

.safe-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.safe-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-safe strong {
  display: block;
  color: #667085;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px 0;
  }

  .footer-app {
    grid-column: span 3;
    padding-left: 0;
    border-left: 0;
  }

  .footer-app-card {
    max-width: 440px;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }

  .footer-safe {
    justify-self: start;
  }
}

/* Keep the left category block ready in the left column; sticky should not wait for scroll JS. */
@media (min-width: 981px) {
  .assistant-panel,
  body.catalog-sticky-active .assistant-panel {
    grid-row: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(var(--sidebar-cut-left));
  }

  .side-category-panel,
  body.catalog-sticky-active .side-category-panel {
    grid-row: 1;
    margin-top: var(--side-category-offset, 520px);
    will-change: opacity, transform;
    transform: translate(0, 18px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  }

  .side-category-panel {
    position: fixed;
    top: -10000px;
    left: -10000px;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: none;
  }

  body.side-panel-assistant-passed .side-category-panel,
  .side-category-panel.is-visible,
  body.catalog-sticky-active .side-category-panel {
    position: sticky;
    top: var(--catalog-sticky-top-offset, 72px);
    left: auto;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, 0);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0s;
    transition-delay: 0s;
  }

  .side-category-panel.is-hiding {
    position: sticky;
    top: var(--catalog-sticky-top-offset, 72px);
    left: auto;
    margin-top: 0;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translate(0, 18px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  }
}

/* Keep the side-triggered catalog search aligned with the product catalog, not the left category panel. */
.catalog-sticky-control,
.catalog-sticky-control.visible {
  left: calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad) + var(--sidebar-width) + var(--catalog-layout-gap) + 95px);
  right: auto;
  width: calc(100vw - var(--catalog-floating-left, 0px) - var(--catalog-floating-right, 0px) + 77px);
  max-width: calc(100vw - calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad) + var(--sidebar-width) + var(--catalog-layout-gap) + 95px) + 137px);
}

@media (max-width: 1180px) {
  .catalog-sticky-control,
  .catalog-sticky-control.visible {
    left: calc(max(5px, var(--catalog-side-gap)) + var(--sidebar-width) + var(--catalog-layout-gap) + 95px);
    right: auto;
    max-width: calc(100vw - calc(max(5px, var(--catalog-side-gap)) + var(--sidebar-width) + var(--catalog-layout-gap) + 95px) + 137px);
  }
}

@media (max-width: 980px) {
  .catalog-sticky-control,
  .catalog-sticky-control.visible {
    left: 18px;
    right: 18px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .catalog-sticky-control,
  .catalog-sticky-control.visible {
    left: 12px;
    right: 12px;
  }
}

.catalog-sticky-control.visible {
  z-index: 120;
}

.catalog-sticky-control.visible .catalog-search-suggestions {
  width: 100%;
  box-sizing: border-box;
}

.catalog-sticky-control .catalog-search,
.catalog-sticky-control .catalog-search-suggestions {
  width: 100%;
  max-width: calc(100vw - 24px);
}

@media (max-width: 980px) {
  .catalog-sticky-control .catalog-search,
  .catalog-sticky-control .catalog-search-suggestions {
    width: 100%;
    max-width: none;
  }
}

/* Match floating catalog search suggestions to the main top search dropdown. */
.catalog-search-suggestions {
  max-height: var(--suggestions-available-height, calc(100dvh - 12px));
  padding: 8px;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 32, 27, 0.18);
}

.catalog-search-suggestions.open {
  gap: 6px;
}

.catalog-search-suggestions .search-suggestion {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 52px;
  padding: 5px 7px;
}

.catalog-search-suggestions .search-suggestion img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.catalog-search-suggestions .suggestion-main strong {
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.25;
}

.catalog-search-suggestions .suggestion-main small {
  font-size: 11px;
  font-weight: 750;
}

.catalog-search-suggestions .suggestion-price {
  font-size: 12px;
  font-weight: 900;
}

.catalog-search-suggestions .search-show-all {
  min-height: 24px;
  padding: 3px 6px 1px;
  font-size: 12px;
  font-weight: 800;
}

/* Match floating catalog search input text to the main top search. */
.catalog-sticky-control .catalog-search input {
  color: #172033;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.catalog-sticky-control .catalog-search input::placeholder {
  color: #8a94a3;
  font-weight: 500;
  opacity: 1;
}

/* Restore original colored PNG category icons while keeping deferred loading. */
.category-icon > .category-img,
.side-category-icon > .category-img,
.side-category-title-icon > .category-img,
.quick-filter-icon .category-img {
  display: block;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}

.category-strip .category-icon > .category-img,
.category-strip .category-button.category-image-card .category-img {
  width: 30px;
  height: 30px;
}

.catalog-panel .category-list.category-strip .category-icon > .category-img {
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > .category-img {
  filter: saturate(1.12) brightness(1.06);
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon {
  opacity: 1 !important;
  color: #078c49 !important;
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon::before,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon::before {
  content: "" !important;
  background: #e7f6eb !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.side-category-panel .side-category-button:hover .side-category-icon,
.side-category-panel .side-category-button:focus-visible .side-category-icon,
.side-category-panel .side-category-button:hover .side-category-icon > svg,
.side-category-panel .side-category-button:focus-visible .side-category-icon > svg,
.side-category-panel .side-category-button:hover .side-category-icon > .category-line-svg,
.side-category-panel .side-category-button:focus-visible .side-category-icon > .category-line-svg,
.side-category-panel .side-category-button:hover .side-category-icon > .category-img,
.side-category-panel .side-category-button:focus-visible .side-category-icon > .category-img {
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon,
.catalog-panel .category-list.category-strip .category-button:hover .category-icon,
.catalog-panel .category-list.category-strip .category-toggle:hover,
.catalog-panel .category-list.category-strip .category-toggle:focus-visible {
  background: transparent !important;
}

.catalog-panel .category-list.category-strip .category-icon::before,
.catalog-panel .category-list.category-strip .category-button.category-image-card .category-icon::before,
.catalog-panel .category-list.category-strip .parent-category.active .category-icon::before,
.catalog-panel .category-list.category-strip .category-group.open .category-icon::before,
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon::before {
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
  box-shadow: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > .category-img,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon > .category-img,
.catalog-panel .category-list.category-strip .category-button:hover .category-img {
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-toggle {
  font-size: 0 !important;
  transform: none !important;
  transition: color 0.16s ease, background 0.16s ease;
}

.catalog-panel .category-list.category-strip .category-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: 60% 60%;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.catalog-panel .category-list.category-strip .category-group.open .category-toggle {
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-group.open .category-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.catalog-sticky-control .category-strip .category-icon > .category-img {
  width: 25px;
  height: 25px;
}

.side-category-panel .side-category-icon > .category-img,
.side-category-panel .side-category-title-icon > .category-img {
  width: 28px;
  height: 28px;
}

/* Keep search dropdown typography aligned with the product cards and header search. */
.search-suggestions,
.catalog-search-suggestions {
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  letter-spacing: 0;
}

.search-suggestions .search-suggestion,
.catalog-search-suggestions .search-suggestion {
  font-family: inherit;
  color: #172033;
}

.search-suggestions .suggestion-main strong,
.catalog-search-suggestions .suggestion-main strong {
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.search-suggestions .suggestion-main small,
.catalog-search-suggestions .suggestion-main small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.search-suggestions .suggestion-price,
.catalog-search-suggestions .suggestion-price {
  display: none;
}

.search-suggestions .search-show-all,
.catalog-search-suggestions .search-show-all {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .footer-container {
    padding: 34px 16px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding: 24px 0 0;
    border-top: 1px solid rgba(16, 27, 53, 0.1);
    border-left: 0;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-links {
    gap: 13px;
  }

  .footer-app {
    grid-column: auto;
  }

  .footer-app-card {
    max-width: 100%;
    height: 250px;
  }

  .footer-app-content {
    width: 60%;
    padding: 22px 0 0 20px;
  }

  .footer-store-buttons,
  .footer-store-button {
    width: 142px;
  }

  .footer-store-button {
    height: 43px;
    padding: 6px 10px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
    padding-bottom: 24px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-bottom-links a + a::before {
    display: none;
  }

  .footer-safe {
    justify-self: start;
  }
}

/* Hero search dropdown layering: dropdown stays attached while backgrounds remain below content. */
body.hero-search-suggestions-open .hero,
body.hero-search-suggestions-open main > .hero {
  position: relative !important;
  z-index: auto !important;
  overflow: visible !important;
  isolation: auto !important;
}

body.hero-search-suggestions-open .workspace,
body.hero-search-suggestions-open .assistant-panel,
body.hero-search-suggestions-open .catalog-panel,
body.hero-search-suggestions-open .side-category-panel {
  position: relative !important;
  z-index: 20 !important;
}

body.hero-search-suggestions-open .hero .hero-copy,
body.hero-search-suggestions-open .hero .search-shell,
body.hero-search-suggestions-open .hero .search-box {
  position: relative !important;
  z-index: 2000 !important;
  overflow: visible !important;
}

body.hero-search-suggestions-open .hero #searchSuggestions {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: -8px !important;
  right: -8px !important;
  width: auto !important;
  z-index: 2001 !important;
  max-height: var(--suggestions-available-height, calc(100dvh - 12px));
  overflow-y: auto;
}

body.hero-search-suggestions-open .hero-decor,
body.hero-search-suggestions-open .hero-wave {
  z-index: 0 !important;
  pointer-events: none;
}

body.hero-search-suggestions-open .hero-visual,
body.hero-search-suggestions-open .hero-visual.hero-media,
body.hero-search-suggestions-open .hero-products {
  position: relative !important;
  z-index: 2 !important;
  pointer-events: none;
}
/* Final catalog scroll paint guard: prevent white gaps during fast scrolling. */
.product-grid,
.product-load-more,
.product-grid .product-card,
.product-grid .product-card-skeleton,
.product-grid .catalog-loading-status {
  content-visibility: visible !important;
}

.product-load-more .catalog-loading-status,
.product-load-more .product-card-skeleton,
.product-grid > .catalog-loading-status,
.product-grid > .product-card-skeleton,
.product-grid .product-card {
  opacity: 1 !important;
  animation-delay: 0s !important;
}

.product-grid .product-card,
.product-grid .product-card-skeleton {
  transform: none !important;
  backface-visibility: hidden;
}

.product-grid .product-media {
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faf3 0%, #f1f6ee 100%);
}

.product-grid .product-photo {
  background-color: transparent;
}

/* Search suggestions should show products only, without prices. */
.search-suggestions .suggestion-price,
.catalog-search-suggestions .suggestion-price,
.side-search-price {
  display: none !important;
}

/* Reserve the catalog's first render footprint to prevent mobile cached CLS. */
.catalog-panel .category-list.category-strip:empty {
  min-height: 314px;
}

.product-grid:empty {
  min-height: 738px;
}

@media (max-width: 1180px) {
  .catalog-panel .category-list.category-strip:empty {
    min-height: 570px;
  }
}

/* Product card vertical tile redesign. */
.catalog-panel .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.catalog-panel .product-grid .product-card {
  --card-horizontal-padding: 14px;
  --image-surface-width: 147px;
  --image-left-offset: calc(var(--card-horizontal-padding) + ((100% - (var(--card-horizontal-padding) * 2) - var(--image-surface-width)) / 2));
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.catalog-panel .product-grid .product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 45%);
}

.catalog-panel .product-grid .favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e0e6e1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2433;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(20, 34, 24, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.catalog-panel .product-grid .favorite-button:hover,
.catalog-panel .product-grid .favorite-button:focus-visible {
  color: #079447;
  border-color: #b9dfc4;
  outline: 0;
}

.catalog-panel .product-grid .product-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  height: 148px;
  margin: 2px 0 10px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 52%, rgba(8, 148, 71, 0.075), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
}

.catalog-panel .product-grid .product-photo {
  display: block;
  width: 147px;
  height: 147px;
  margin: 0 auto;
  object-fit: contain;
  background-color: transparent;
  filter: drop-shadow(0 8px 12px rgba(22, 42, 28, 0.1));
}

.catalog-panel .product-grid .product-photo.is-fallback {
  opacity: 0.72;
}

.catalog-panel .product-grid .product-photo.is-missing {
  display: none;
}

.catalog-panel .product-grid .product-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.catalog-panel .product-grid .product-meta h3,
.catalog-panel .product-grid .product-card h3 {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  color: #141c2c;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-panel .product-grid .product-title {
  min-height: calc(3 * 1.28em);
  margin: 0;
  overflow: hidden;
  color: #141c2c;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.catalog-panel .product-grid .product-title__line {
  min-height: 1.28em;
  max-height: 1.28em;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.catalog-panel .product-grid .product-title__last-row {
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  min-height: 1.28em;
}

.catalog-panel .product-grid .product-title__last-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.test-page .product-title-layout {
  display: grid;
  width: 100%;
  min-width: 0;
}

.test-page .product-title-layout > .product-title,
.test-page .product-title__pack-row {
  grid-area: 1 / 1;
}

.test-page .product-title__pack-row {
  display: flex;
  align-self: end;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  pointer-events: none;
}

.catalog-panel .product-grid .product-title__weight {
  justify-self: end;
  min-width: 0;
  color: #7b8794;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.catalog-panel .product-grid .product-meta > p,
.catalog-panel .product-grid .product-card p {
  margin: 5px 0 10px;
  overflow: hidden;
  color: #7c8595;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-panel .product-grid .card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 0;
  margin: 0 0 7px;
}

.catalog-panel .product-grid .card-badges:empty {
  display: none;
}

.catalog-panel .product-grid .source-badge,
.catalog-panel .product-grid .discount-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1;
}

.catalog-panel .product-grid .source-badge.live {
  color: #079447;
  background: #e1f6e8;
}

.catalog-panel .product-grid .discount-pill {
  color: #ff4f5f;
  background: #ffe8ec;
}

.catalog-panel .product-grid .card-best-price,
.catalog-panel .product-grid .best-caption {
  display: none;
}

/* Metadata-only public cards: visible state, not a fabricated store offer. */
.catalog-panel .product-grid .product-card .catalog-no-price-message {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-panel .product-grid .card-store-list {
  display: grid;
  grid-auto-rows: 34px;
  grid-template-rows: none;
  align-content: start;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}

.catalog-panel .product-grid .card-store-list.is-single-offer {
  margin-top: 0;
}

.catalog-panel .product-grid .card-store-viewport {
  --collapsed-store-count: 3;
  --store-row-height: 34px;
  position: absolute;
  right: 0;
  bottom: 88px;
  left: 0;
  z-index: 8;
  height: 102px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid #e8ede9;
  background: #ffffff;
  transform: none !important;
  transition: height 850ms cubic-bezier(0.22, 0.72, 0.18, 1);
}

.catalog-panel .product-grid .card-store-viewport.has-more-stores {
  height: calc(var(--collapsed-store-count) * var(--store-row-height));
  min-height: 0;
}

.catalog-panel .product-grid .card-store-list-motion {
  transform: translateY(0);
  will-change: auto;
}

.catalog-panel .product-grid .card-store-viewport .card-store-list {
  grid-template-rows: none;
  grid-auto-rows: var(--store-row-height);
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-viewport {
  z-index: 10;
  height: calc(var(--store-count) * var(--store-row-height) + 2px);
  overflow: hidden;
  background: #ffffff;
}

.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-list-motion {
  transform: translateY(0);
}

.catalog-panel .product-grid .card-store-row {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 88px;
  align-items: center;
  column-gap: 8px;
  height: 34px;
  min-height: 0;
  padding: 6px 8px;
  box-sizing: border-box;
  color: #1e293a;
  font-size: 12.7px;
}

.catalog-panel .product-grid .card-store-row.is-best,
.catalog-panel .product-grid .card-store-row.best-store {
  margin: 0;
  padding: 5px 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e1f6e8 0%, #eefaf2 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.catalog-panel .product-grid .card-store-row.is-muted {
  opacity: 0.62;
}

.catalog-panel .product-grid .store-name,
.catalog-panel .product-grid .card-store-name {
  display: block;
  align-items: center;
  min-width: 0;
  font-weight: 800;
  text-align: left;
}

.catalog-panel .product-grid .store-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-panel .product-grid .store-price {
  justify-self: end;
  width: 100%;
  min-width: 0;
  color: #111a2c;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.catalog-panel .product-grid .store-diff {
  justify-self: end;
  width: 20px;
  color: #747f8f;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.catalog-panel .product-grid .store-diff.is-best {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent url("assets/icons/best-price-thumb.webp?v=3f74663fae4d5598488107b45196c4e1509a74c5928b9a98f9f194b12c517863") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -999px;
}

.catalog-panel .product-grid .store-logo {
  position: relative;
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef5ef;
  box-shadow: inset 0 0 0 1px rgba(12, 84, 44, 0.08);
}

.catalog-panel .product-grid .store-logo::before {
  color: #087540;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.catalog-panel .product-grid .store-logo--five {
  background: radial-gradient(circle, #ffffff 33%, #f4fff7 34%);
}

.catalog-panel .product-grid .store-logo--five::before {
  content: "5";
  color: #e71930;
}

.catalog-panel .product-grid .store-logo--magnit {
  background: #ffe9e5;
}

.catalog-panel .product-grid .store-logo--magnit::before {
  content: "M";
  color: #e21b23;
}

.catalog-panel .product-grid .store-logo--dixy {
  background: #fff2d6;
}

.catalog-panel .product-grid .store-logo--dixy::before {
  content: "Д";
  color: #f49a00;
}

.catalog-panel .product-grid .store-logo--perek {
  background: #e4f7ec;
}

.catalog-panel .product-grid .store-logo--perek::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 2px, transparent 2px),
    conic-gradient(#079447 0 25%, #19a957 0 50%, #079447 0 75%, #19a957 0);
}

.catalog-panel .product-grid .store-logo--default::before {
  content: "•";
}

.catalog-panel .product-grid .more-stores {
  position: absolute;
  left: 8px;
  bottom: 50px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 26px;
  padding: 0 9px;
  margin: 0;
  border: 1px solid #dce9df;
  border-radius: 999px;
  background: #f7fbf8;
  color: #079447;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: none !important;
}

.catalog-panel .product-grid .more-stores::after {
  content: "⌄";
  font-size: 13px;
  line-height: 1;
}

.catalog-panel .product-grid .product-card.is-stores-expanded .more-stores::after {
  content: "⌃";
}

.catalog-panel .product-grid .add-button {
  position: absolute;
  right: 12px;
  bottom: 15px;
  left: 12px;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 40px;
  margin: 0;
  border: 1.5px solid #dfe6dc;
  border-radius: 12px;
  background: #ffffff;
  color: #202536;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.catalog-panel .product-grid .add-button::before {
  content: "+";
  margin-right: 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 0;
  transform: translateY(-1px);
}

.catalog-panel .product-grid .add-button:hover,
.catalog-panel .product-grid .add-button:focus-visible {
  color: #079447;
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
  box-shadow: none;
  outline: 0;
  transform: none;
}

.catalog-panel .product-grid .add-button.is-added,
.catalog-panel .product-grid .product-card.is-added .add-button {
  color: #ffffff;
  border-color: #079447;
  background: linear-gradient(135deg, #0aa652, #079447);
}

.catalog-panel .product-grid .add-button.is-added::before,
.catalog-panel .product-grid .product-card.is-added .add-button::before {
  content: "✓";
  font-size: 17px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .catalog-panel .product-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-panel .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-panel .product-grid .product-card {
    --card-horizontal-padding: 10px;
    --image-surface-width: 121px;
    padding: 10px;
    border-radius: var(--radius-card-compact);
  }

  .catalog-panel .product-grid .favorite-button {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .catalog-panel .product-grid .product-media {
    height: 122px;
    margin-bottom: 8px;
    border-radius: 13px;
  }

  .catalog-panel .product-grid .product-photo {
    width: 121px;
    height: 121px;
  }

  .catalog-panel .product-grid .product-meta h3,
  .catalog-panel .product-grid .product-card h3 {
    min-height: 36px;
    font-size: 13.5px;
    line-height: 1.28;
  }

  .catalog-panel .product-grid .product-title {
    min-height: calc(3 * 1.28em);
    font-size: 13.5px;
    line-height: 1.28;
  }

  .catalog-panel .product-grid .product-meta > p,
  .catalog-panel .product-grid .product-card p {
    margin: 4px 0 8px;
    font-size: 12px;
  }

  .catalog-panel .product-grid .card-badges {
    min-height: 0;
    margin-bottom: 7px;
  }

  .catalog-panel .product-grid .card-store-list {
    grid-auto-rows: 31px;
    grid-template-rows: none;
    min-height: 0;
  }

  .catalog-panel .product-grid .card-store-viewport {
    --store-row-height: 31px !important;
    bottom: 84px;
    height: 93px;
    min-height: 0;
  }

  .catalog-panel .product-grid .card-store-viewport.has-more-stores {
    height: calc(var(--collapsed-store-count) * var(--store-row-height));
    min-height: 0;
  }

  .catalog-panel .product-grid .product-card.is-stores-expanded .card-store-viewport {
    height: calc(var(--store-count) * var(--store-row-height) + 2px);
  }

  .catalog-panel .product-grid .product-card.is-stores-expanded .card-store-list-motion {
    transform: translateY(0);
  }

  .catalog-panel .product-grid .source-badge,
  .catalog-panel .product-grid .discount-pill {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 10.5px;
  }

  .catalog-panel .product-grid .card-store-row {
    grid-template-columns: minmax(0, 1fr) max-content 18px;
    gap: 6px;
    min-height: 31px;
    padding: 5px 0;
    font-size: 11.5px;
  }

  .catalog-panel .product-grid .card-store-row.is-best,
  .catalog-panel .product-grid .card-store-row.best-store {
    margin: 0 -5px;
    padding: 5px;
    border-radius: 9px;
  }

  .catalog-panel .product-grid .store-logo {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .catalog-panel .product-grid .store-logo::before {
    font-size: 10px;
  }

  .catalog-panel .product-grid .store-price {
    min-width: 46px;
    font-size: 12.5px;
  }

  .catalog-panel .product-grid .store-diff {
    display: none;
  }

  .catalog-panel .product-grid .store-diff.is-best {
    display: inline-flex;
    width: 18px;
    height: 18px;
  }

  .catalog-panel .product-grid .add-button {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto !important;
    min-height: 36px;
    margin: 0;
    border-radius: 10px;
    font-size: 13px;
  }

  .catalog-panel .product-grid .add-button::before {
    margin-right: 6px;
    font-size: 18px;
  }
}

@media (max-width: 980px) {
  .catalog-panel .category-list.category-strip:empty {
    min-height: 826px;
  }
}

/* Product card alignment: keep one centered inner width for media, text, rows and button. */
.catalog-panel .product-grid .product-card {
  box-sizing: border-box;
}

.catalog-panel .product-grid .product-media,
.catalog-panel .product-grid .product-meta,
.catalog-panel .product-grid .product-meta h3,
.catalog-panel .product-grid .product-meta > p,
.catalog-panel .product-grid .product-title,
.catalog-panel .product-grid .card-badges,
.catalog-panel .product-grid .card-store-viewport,
.catalog-panel .product-grid .card-store-list-motion,
.catalog-panel .product-grid .card-store-list,
.catalog-panel .product-grid .card-store-row,
.catalog-panel .product-grid .add-button {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.catalog-panel .product-grid .product-media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 148px !important;
  margin: -2px 0 10px !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.catalog-panel .product-grid .product-media::before,
.catalog-panel .product-grid .product-media::after {
  content: none !important;
  display: none !important;
}

.catalog-panel .product-grid .product-photo {
  flex: 0 0 auto;
  width: 147px !important;
  height: 147px !important;
  max-width: 147px !important;
  max-height: 147px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 52%, rgba(8, 148, 71, 0.075), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%) !important;
  transform: none !important;
}

.catalog-panel .product-grid .product-meta {
  padding: 0 !important;
}

.catalog-panel .product-grid .product-meta > :not(.add-button):not(.card-store-viewport):not(.more-stores) {
  transform: translateY(-18px);
}

.catalog-panel .product-grid .product-meta > .add-button,
.catalog-panel .product-grid .product-meta > .card-store-viewport,
.catalog-panel .product-grid .product-meta > .more-stores {
  transform: none !important;
}

.catalog-panel .product-grid .product-meta > .add-button {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.catalog-panel .product-grid .card-store-row,
.catalog-panel .product-grid .card-store-row.is-best,
.catalog-panel .product-grid .card-store-row.best-store {
  grid-template-columns: 20px minmax(0, 1fr) 88px !important;
  column-gap: 8px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Shared price divider: the ordinary home card is the visual reference. */
.test-page .test-home-section-grid .product-card,
.catalog-panel .product-grid .product-card {
  --product-price-divider-stroke: 1px solid #e8ede9;
  --product-price-divider-inline-padding: 14px;
  --product-price-divider-inset: 0px;
}
@media (max-width: 760px) {
  .test-page .test-home-section-grid .product-card,
  .catalog-panel .product-grid .product-card {
    --product-price-divider-inline-padding: 10px;
  }
}

/* Store expand test: restore the base card flow and isolate expandable behavior. */
.catalog-panel .product-grid .card-store-list {
  display: grid;
  grid-template-rows: repeat(4, 34px);
  align-content: start;
  min-height: 136px;
  margin-top: auto;
  padding-top: 1px;
  border-top: var(--product-price-divider-stroke);
  border-bottom: 0;
}

.catalog-panel .product-grid .card-store-list.is-single-offer {
  margin-top: auto;
}

.catalog-panel .product-grid .card-store-viewport,
.catalog-panel .product-grid .card-store-list-motion {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  transform: none !important;
}

.catalog-panel .product-grid .add-button {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 40px;
  margin-top: -36px !important;
}

.catalog-panel .product-grid .product-meta > .add-button {
  margin-top: -36px !important;
}

.catalog-panel .product-grid .card-store-section {
  position: relative;
  display: block;
  height: 136px;
  min-height: 136px;
  overflow: visible;
  margin-top: auto;
}

.catalog-panel .product-grid .card-store-mask {
  position: absolute;
  top: -11px;
  right: 0;
  left: 0;
  height: calc(var(--collapsed-store-count) * var(--store-row-height));
  overflow: hidden;
  border-top: 0;
  background: #ffffff;
  transition:
    top 850ms cubic-bezier(0.22, 0.72, 0.18, 1),
    height 850ms cubic-bezier(0.22, 0.72, 0.18, 1);
}

.catalog-panel .product-grid .card-store-mask::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--product-price-divider-inset);
  left: var(--product-price-divider-inset);
  z-index: 2;
  height: 0;
  border-top: var(--product-price-divider-stroke);
  background: none;
  pointer-events: none;
}

.catalog-panel .product-grid .card-store-motion {
  display: grid;
  grid-auto-rows: var(--store-row-height);
  padding-top: 2px;
  transform: translateY(0);
  transition: transform 850ms cubic-bezier(0.22, 0.72, 0.18, 1);
}

.catalog-panel .product-grid .card-store-section .more-stores {
  position: absolute;
  left: 50%;
  bottom: 19px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 140px !important;
  min-height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3f4658;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%) !important;
  cursor: pointer;
}

.catalog-panel .product-grid .card-store-section .more-stores:hover,
.catalog-panel .product-grid .card-store-section .more-stores:focus-visible,
.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-section .more-stores {
  color: #3f4658;
  background: transparent;
}

.catalog-panel .product-grid .card-store-section .more-stores::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-65%) rotate(45deg);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.catalog-panel .product-grid .card-store-section .more-stores:hover::after,
.catalog-panel .product-grid .card-store-section .more-stores:focus-visible::after,
.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-section .more-stores::after {
  border-color: #667085;
}

.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-section .more-stores::after {
  content: "";
  transform: translateY(-35%) rotate(225deg);
}

.catalog-panel .product-grid .product-card.is-stores-expanded .card-store-mask {
  top: calc(-11px - var(--extra-store-count) * var(--store-row-height));
  z-index: 10;
  height: calc(var(--store-count) * var(--store-row-height));
}

.catalog-panel .product-grid .discount-pill,
.catalog-panel .product-grid .store-diff {
  display: none !important;
}

.catalog-panel .product-grid .store-logo.store-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.catalog-panel .product-grid .favorite-button,
.product-grid .product-card .favorite-button {
  transform: none !important;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.catalog-panel .product-grid .favorite-button:hover,
.catalog-panel .product-grid .favorite-button:focus-visible,
.catalog-panel .product-grid .favorite-button:active,
.product-grid .product-card .favorite-button:hover,
.product-grid .product-card .favorite-button:focus-visible,
.product-grid .product-card .favorite-button:active {
  top: 14px !important;
  color: #079447 !important;
  border-color: #e0e6e1 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
  outline: 0;
}

@media (max-width: 760px) {
  .catalog-panel .product-grid .favorite-button:hover,
  .catalog-panel .product-grid .favorite-button:focus-visible,
  .product-grid .product-card .favorite-button:hover,
  .product-grid .product-card .favorite-button:focus-visible {
    top: 10px !important;
  }

  .catalog-panel .product-grid .product-media {
    height: 122px !important;
    margin-bottom: 8px !important;
    border-radius: 13px !important;
  }

  .catalog-panel .product-grid .product-photo {
    width: 121px !important;
    height: 121px !important;
    max-width: 121px !important;
    max-height: 121px !important;
  }
}

@media (max-width: 640px) {
  .catalog-panel .category-list.category-strip:empty {
    min-height: 1594px;
  }

  .product-grid:empty {
    min-height: 988px;
  }
}

/* Keep the sticky header above every search dropdown and catalog layer. */
.topbar,
body.hero-search-suggestions-open .topbar,
body.catalog-sticky-active .topbar,
body.cart-open .topbar,
body.cart-closing .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9000 !important;
}

/* Full image logo replacement. */
.topbar .brand {
  min-width: 0;
  gap: 0;
}

.brand-logo-img {
  display: block;
  width: 190px;
  height: auto;
  max-width: none;
}

.footer-logo {
  min-width: 0;
  gap: 0;
}

.footer-logo-img {
  display: block;
  width: 210px;
  height: auto;
  max-width: 100%;
}

/* Nudge the header navigation links slightly to the right. */
.topbar .nav {
  transform: translateX(1px);
}

/* Keep the closed shopping-list drawer out of the page width at browser zoom levels. */
body:not(.cart-open) .basket-section {
  display: none !important;
}

body.cart-open .basket-section {
  display: block !important;
}

/* Shopping list drawer layer contract:
   page and header stay visible under the dimming overlay, drawer stays above it. */
:root {
  --z-header: 1000;
  --z-cart-overlay: 1100;
  --z-cart-drawer: 1200;
}

html {
  scrollbar-gutter: stable;
}

/* Keep one scrollbar-width source while the drawer removes the root rail.
   The value is normalized for the page shell's CSS zoom in test.js. */
html.cart-open,
html.cart-closing {
  scrollbar-gutter: stable;
}

body.cart-open,
body.cart-closing {
  padding-right: var(--cart-scrollbar-width, 0px) !important;
}

body.cart-open .topbar,
body.cart-open.catalog-sticky-active .topbar,
body.cart-open.hero-search-suggestions-open .topbar,
body.cart-closing .topbar,
body.cart-closing.catalog-sticky-active .topbar,
body.cart-closing.hero-search-suggestions-open .topbar {
  position: fixed !important;
  top: 0 !important;
  right: var(--cart-scrollbar-width, 0px) !important;
  left: 0 !important;
  z-index: var(--z-header) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;
}

html.cart-open,
body.cart-open {
  overflow: hidden !important;
}

body.cart-open,
body.cart-closing {
  padding-top: calc(var(--cart-topbar-height, 0px) + var(--cart-page-shift-y, 0px)) !important;
}

@media (min-width: 1321px) {
  body.cart-open .cart-fab-anchor,
  body.cart-closing .cart-fab-anchor {
    transform: translateY(calc(-1 * (var(--cart-topbar-height, 0px) + var(--cart-page-shift-y, 0px)))) !important;
  }
}

body.cart-open {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: auto !important;
}

body.cart-open.side-panel-assistant-passed .side-category-panel,
body.cart-open .side-category-panel.is-visible,
body.cart-open.catalog-sticky-active .side-category-panel {
  position: fixed !important;
  top: var(--catalog-sticky-top-offset, 72px) !important;
  left: var(
    --side-category-fixed-left,
    calc(max(0px, (100vw - var(--page-container-max)) / 2) + var(--page-container-pad))
  ) !important;
  z-index: var(--z-header) !important;
  width: var(--sidebar-sticky-width) !important;
  min-width: var(--sidebar-sticky-width) !important;
  max-width: var(--sidebar-sticky-width) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;
}

body.cart-open .cart-backdrop {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--z-cart-overlay) !important;
  background: rgba(12, 24, 20, 0.42) !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.cart-open .basket-section {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: var(--z-cart-drawer) !important;
  display: block !important;
  width: min(650px, 100vw) !important;
  max-width: 100vw !important;
  height: calc(100dvh / 0.9) !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Product card price alert action: mirrors the favorite heart button. */
.catalog-panel .product-grid .price-alert-button,
.product-grid .product-card .price-alert-button {
  position: absolute;
  top: 56px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e0e6e1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2433;
  box-shadow: 0 8px 18px rgba(20, 34, 24, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transform: none !important;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.catalog-panel .product-grid .price-alert-button svg,
.product-grid .product-card .price-alert-button svg,
.product-modal__actions .price-alert-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-panel .product-grid .price-alert-button:hover,
.catalog-panel .product-grid .price-alert-button:focus-visible,
.product-grid .product-card .price-alert-button:hover,
.product-grid .product-card .price-alert-button:focus-visible {
  color: #079447 !important;
  border-color: #bfe5cf !important;
  background-color: #eefaf3 !important;
  transform: none !important;
  outline: 0;
}

/* Product card shopping-list action: same visual system as heart and bell. */
.catalog-panel .product-grid .shopping-list-button,
.product-grid .product-card .shopping-list-button {
  position: absolute;
  top: 98px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e0e6e1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2433;
  box-shadow: 0 8px 18px rgba(20, 34, 24, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transform: none !important;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.catalog-panel .product-grid .shopping-list-button svg,
.product-grid .product-card .shopping-list-button svg,
.product-modal__actions .shopping-list-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-panel .product-grid .shopping-list-button:hover,
.catalog-panel .product-grid .shopping-list-button:focus-visible,
.catalog-panel .product-grid .shopping-list-button:active,
.product-grid .product-card .shopping-list-button:hover,
.product-grid .product-card .shopping-list-button:focus-visible,
.product-grid .product-card .shopping-list-button:active {
  color: #079447 !important;
  border-color: #e0e6e1 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
  outline: 0;
}

.catalog-panel .product-grid .favorite-button.is-favorite-active,
.catalog-panel .product-grid .favorite-button[aria-pressed="true"],
.catalog-panel .product-grid .shopping-list-button.is-active,
.catalog-panel .product-grid .shopping-list-button[aria-pressed="true"],
.product-grid .product-card .favorite-button.is-favorite-active,
.product-grid .product-card .favorite-button[aria-pressed="true"],
.product-grid .product-card .shopping-list-button.is-active,
.product-grid .product-card .shopping-list-button[aria-pressed="true"] {
  color: #079447 !important;
  border-color: #e0e6e1 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
  outline: 0;
}

@media (max-width: 760px) {
  .catalog-panel .product-grid .price-alert-button,
  .product-grid .product-card .price-alert-button {
    top: 50px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .catalog-panel .product-grid .price-alert-button svg,
  .product-grid .product-card .price-alert-button svg {
    width: 16px;
    height: 16px;
  }

  .catalog-panel .product-grid .shopping-list-button,
  .product-grid .product-card .shopping-list-button {
    top: 86px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .catalog-panel .product-grid .shopping-list-button svg,
  .product-grid .product-card .shopping-list-button svg {
    width: 16px;
    height: 16px;
  }
}

/* Compact product cards after the bottom add button moved into the round icon stack. */
.catalog-panel .product-grid .product-card:not(:has(.add-button)) .card-store-list {
  grid-template-rows: none !important;
  grid-auto-rows: var(--store-row-height, 34px) !important;
  min-height: 0 !important;
  margin-top: 0 !important;
}

.catalog-panel .product-grid .product-card:not(:has(.add-button)) .product-meta {
  flex: 0 1 auto;
}

/* Home product sections: fixed card rhythm with a reserved price/toggle area. */
.test-page .test-home-section-grid {
  align-items: stretch;
}

/* Home product rows use the same horizontal rhythm as category product grids. */
.test-page .test-home-products-section {
  padding-right: 18px !important;
  padding-left: 18px !important;
}

.test-page .test-home-section-grid {
  gap: 14px !important;
  padding-right: 11px !important;
  box-sizing: border-box;
}

.test-page .test-home-section-grid .product-card {
  --home-card-height: 351px;
  --home-price-area-height: 136px;
  --home-price-list-height: 102px;
  height: var(--home-card-height) !important;
  min-height: var(--home-card-height) !important;
  max-height: var(--home-card-height) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.test-page .test-home-section-grid .product-card .product-media {
  flex: 0 0 148px !important;
  height: 148px !important;
}

.test-page .test-home-section-grid .product-card .product-meta {
  display: grid !important;
  grid-template-rows: 54px var(--home-price-area-height);
  flex: 1 1 auto !important;
  align-content: start;
  min-height: 0 !important;
  padding: 0 !important;
}

.test-page .test-home-section-grid .product-card .product-title-layout,
.test-page .test-home-section-grid .product-card .card-store-list,
.test-page .test-home-section-grid .product-card .card-store-section {
  transform: translateY(-18px) !important;
}

.test-page .test-home-section-grid .product-card .product-title-layout {
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
}

.test-page .test-home-section-grid .product-card .card-store-list {
  grid-row: 2;
  grid-template-rows: repeat(3, 34px) !important;
  grid-auto-rows: 34px !important;
  align-content: start;
  height: var(--home-price-area-height) !important;
  min-height: var(--home-price-area-height) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.test-page .test-home-section-grid .product-card .card-store-section {
  grid-row: 2;
  display: flex !important;
  flex-direction: column;
  height: var(--home-price-area-height) !important;
  min-height: var(--home-price-area-height) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.test-page .test-home-section-grid .product-card .card-store-mask {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  flex: 0 0 var(--home-price-list-height);
  height: var(--home-price-list-height) !important;
  min-height: var(--home-price-list-height) !important;
  overflow: hidden !important;
}

.test-page .test-home-section-grid .product-card.is-stores-expanded .card-store-mask {
  overflow-y: auto !important;
  scrollbar-width: thin;
}

.test-page .test-home-section-grid .product-card.is-stores-expanded .card-store-mask {
  top: auto !important;
  height: var(--home-price-list-height) !important;
}

.test-page .test-home-section-grid .product-card .card-store-motion,
.test-page .test-home-section-grid .product-card.is-stores-expanded .card-store-motion {
  transform: none !important;
}

.test-page .test-home-section-grid .product-card .card-store-section .more-stores {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  align-self: center;
  flex: 0 0 27px;
  min-height: 27px;
  margin-top: auto;
  transform: none !important;
}

/* Keep the fixed home-card rhythm, but restore the original smooth price-list reveal. */
.test-page .test-home-section-grid .product-card.has-more-stores .card-store-section {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
}

.test-page .test-home-section-grid .product-card.has-more-stores .card-store-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  height: calc(var(--collapsed-store-count) * var(--store-row-height)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  transition:
    top 850ms cubic-bezier(0.22, 0.72, 0.18, 1),
    height 850ms cubic-bezier(0.22, 0.72, 0.18, 1) !important;
}

.test-page .test-home-section-grid .product-card.has-more-stores.is-stores-expanded .card-store-mask {
  top: calc(-1 * var(--extra-store-count) * var(--store-row-height)) !important;
  height: calc(var(--store-count) * var(--store-row-height)) !important;
  overflow: hidden !important;
}

.test-page .test-home-section-grid .product-card.has-more-stores .card-store-motion {
  transform: translateY(0) !important;
  transition: transform 850ms cubic-bezier(0.22, 0.72, 0.18, 1) !important;
}

.test-page .test-home-section-grid .product-card.has-more-stores .card-store-section .more-stores {
  position: absolute !important;
  left: 50% !important;
  bottom: 13px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 760px) {
  .test-page .test-home-section-grid .product-card {
    --home-card-height: 299px;
    --home-price-area-height: 124px;
    --home-price-list-height: 93px;
  }

  .test-page .test-home-section-grid .product-card .product-media {
    flex-basis: 122px !important;
    height: 122px !important;
  }

  .test-page .test-home-section-grid .product-card .product-meta {
    grid-template-rows: 50px var(--home-price-area-height);
  }

  .test-page .test-home-section-grid .product-card .product-title {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .test-page .test-home-section-grid .product-card .product-title-layout {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .test-page .test-home-section-grid .product-card .card-store-list {
    grid-template-rows: repeat(3, 31px) !important;
    grid-auto-rows: 31px !important;
  }
}

/* Shared product-card rhythm: category cards use the same inner layout as home cards. */
.catalog-panel .product-grid .product-card {
  --home-card-height: 351px;
  --home-price-area-height: 136px;
  --home-price-list-height: 102px;
  height: var(--home-card-height) !important;
  min-height: var(--home-card-height) !important;
  max-height: var(--home-card-height) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.catalog-panel .product-grid .product-card .product-media {
  flex: 0 0 148px !important;
  height: 148px !important;
}

.catalog-panel .product-grid .product-card .product-meta {
  display: grid !important;
  grid-template-rows: 54px var(--home-price-area-height);
  flex: 1 1 auto !important;
  align-content: start;
  min-height: 0 !important;
  padding: 0 !important;
}

.catalog-panel .product-grid .product-card .product-title-layout,
.catalog-panel .product-grid .product-card .card-store-list,
.catalog-panel .product-grid .product-card .card-store-section {
  transform: translateY(-18px) !important;
}

.catalog-panel .product-grid .product-card .product-title-layout {
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
}

.catalog-panel .product-grid .product-card .product-title {
  justify-self: center;
  width: fit-content !important;
  max-width: 100% !important;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  text-align: left;
}

.catalog-panel .product-grid .product-card .product-title::before {
  content: attr(data-product-title);
  display: block;
  height: 0;
  padding-inline: 12px;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
}

.catalog-panel .product-grid .product-card .card-store-list {
  grid-row: 2;
  grid-template-rows: repeat(3, 34px) !important;
  grid-auto-rows: 34px !important;
  align-content: start;
  height: var(--home-price-area-height) !important;
  min-height: var(--home-price-area-height) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.catalog-panel .product-grid .product-card .card-store-section {
  grid-row: 2;
  height: var(--home-price-area-height) !important;
  min-height: var(--home-price-area-height) !important;
  margin-top: 0 !important;
}

.catalog-panel .product-grid .product-card .card-store-section .more-stores {
  bottom: 13px !important;
}

@media (max-width: 760px) {
  .catalog-panel .product-grid .product-card {
    --home-card-height: 299px;
    --home-price-area-height: 124px;
    --home-price-list-height: 93px;
  }

  .catalog-panel .product-grid .product-card .product-media {
    flex-basis: 122px !important;
    height: 122px !important;
  }

  .catalog-panel .product-grid .product-card .product-meta {
    grid-template-rows: 50px var(--home-price-area-height);
  }

  .catalog-panel .product-grid .product-card .product-title {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .catalog-panel .product-grid .product-card .product-title-layout {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .catalog-panel .product-grid .product-card .card-store-list {
    grid-template-rows: repeat(3, 31px) !important;
    grid-auto-rows: 31px !important;
  }

  .test-page .test-home-section-grid .product-card.has-more-stores .card-store-section .more-stores,
  .catalog-panel .product-grid .product-card .card-store-section .more-stores {
    bottom: 17px !important;
  }
}

/* Top category icons: no hover brightness effect. */
.catalog-panel .category-list.category-strip .category-icon,
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon {
  opacity: 1 !important;
}

.catalog-panel .category-list.category-strip .category-icon > .category-img,
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon > .category-img,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon > .category-img,
.catalog-panel .category-list.category-strip .category-button:hover .category-img {
  filter: none !important;
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon::before,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon::before {
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
  box-shadow: none !important;
}

/* Unified shopping-list price selection. Scoped to the drawer only. */
.basket-section .cart-selection-hint {
  min-height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3fbf6 0%, #eef8f2 100%);
  color: #27332d;
  overflow: hidden;
}

.basket-section .cart-selection-hint__icon {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.basket-section .cart-selection-hint__text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.basket-section .cart-selection-hint__title {
  color: #26332d;
  font-size: 12px;
  line-height: 15px;
  font-weight: 750;
}

.basket-section .cart-selection-hint__description,
.basket-section .cart-selection-hint__text small {
  color: #5e6b64;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basket-section .cart-selection-hint__reset {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  color: #079447;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.basket-section .cart-selection-hint__reset:disabled {
  color: #9aa39e;
  cursor: default;
  opacity: 0.56;
}

body .basket-section .cart-selection-hint__reset:disabled:hover,
body .basket-section .cart-selection-hint__reset:disabled:focus-visible {
  color: #9aa39e !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
  transform: none !important;
}

body .basket-section .cart-selection-hint__reset:disabled:hover .cart-selection-hint__reset-icon,
body .basket-section .cart-selection-hint__reset:disabled:focus-visible .cart-selection-hint__reset-icon {
  color: inherit !important;
}

.basket-section .cart-selection-hint__reset-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.basket-section .basket-network-shell {
  position: relative;
  min-width: 0;
}

.basket-section .basket-network-scroll {
  grid-auto-columns: minmax(184px, 184px);
  border-radius: 6px;
  scroll-behavior: smooth;
}

.basket-section .basket-network-scroll.can-scroll-left::before,
.basket-section .basket-network-scroll.can-scroll-right::after {
  content: "";
  position: sticky;
  z-index: 2;
  top: 0;
  width: 20px;
  height: 100%;
  pointer-events: none;
}

.basket-section .basket-network-card {
  grid-template-columns: 34px 1fr 20px;
  grid-template-rows: 20px 22px 16px;
  gap: 0 8px;
  min-width: 184px;
  border: 1px solid transparent;
  border-right-color: #d8dfdb;
  border-radius: 0;
  cursor: pointer;
}

.basket-section .basket-network-card.active {
  border-color: rgba(7, 148, 71, 0.55);
  background: #f3fbf7;
  box-shadow: inset 0 0 0 1px rgba(7, 148, 71, 0.18);
}

/* Match the hover feedback of available, unselected price cells. */
.basket-section .basket-network-card:not(.active):not(.disabled):not(.calculation-excluded):hover {
  background: #f4faf7;
}

.basket-section .basket-network-card.active::after {
  content: none;
}

.basket-section .basket-network-card.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.basket-section .basket-network-logo {
  grid-row: 1 / 4;
  width: 30px;
  height: 30px;
}

.basket-section .basket-network-card b,
.basket-section .basket-network-card strong,
.basket-section .basket-network-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-section .basket-network-card strong {
  color: #17211b;
  font-size: 15px;
}

.basket-section .basket-network-card small {
  color: #66746d;
  font-size: 10px;
  line-height: 13px;
}

.basket-section .basket-network-check {
  grid-column: 3;
  grid-row: 1;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: #079447;
  font-size: 13px;
  font-weight: 800;
}

.basket-section .basket-network-card.active .basket-network-check {
  display: inline-flex;
}

.basket-section .basket-network-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 28px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  color: #22312a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 35, 24, 0.12);
}

.basket-section .basket-network-arrow-left {
  left: 6px;
  transform: translateY(-50%);
}

.basket-section .basket-network-arrow-right {
  right: 6px;
  transform: translateY(-50%);
}

.basket-section .basket-network-arrow.is-hidden {
  display: none;
}

.basket-section .basket-price-cell.selected {
  color: #079447;
  background: #edf8f2;
  box-shadow: inset 0 0 0 1px rgba(7, 148, 71, 0.28);
}

.basket-section .basket-price-cell.manual {
  background: #eaf8f1;
  box-shadow: inset 0 0 0 2px rgba(7, 148, 71, 0.48);
}

.basket-section .basket-price-cell.manual small {
  color: #067f3f;
  font-weight: 750;
}

.basket-section .basket-price-cell.excluded:not(.selected) {
  color: #9aa39e;
  background: #f7f8f7;
  opacity: 0.72;
}

.basket-section .basket-price-row.missing .basket-row-main strong {
  color: #7b8580;
}

.basket-section .cart-selection-hint__reset:focus-visible,
.basket-section .basket-network-arrow:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.24);
  outline-offset: 2px;
}

@media (max-width: 796px) {
  .basket-section .cart-selection-hint {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 11px;
  }

  .basket-section .cart-selection-hint__icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .basket-section .cart-selection-hint__description,
  .basket-section .cart-selection-hint__text small {
    white-space: normal;
  }

  .basket-section .cart-selection-hint__reset {
    width: 34px;
    flex: 0 0 34px;
    padding: 0;
  }

  .basket-section .cart-selection-hint__reset span:last-child {
    display: none;
  }

  .basket-section .basket-network-scroll {
    grid-auto-columns: 184px;
  }

  .basket-section .basket-network-arrow {
    display: none;
  }
}

/* Store rail hugs its fixed-width cards until horizontal scrolling is needed. */
body .basket-section .basket-network-shell {
  display: block;
  width: fit-content;
  max-width: 100%;
}

body .basket-section .basket-network-scroll {
  display: inline-grid !important;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  vertical-align: top;
  box-sizing: border-box;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

body .basket-section .basket-network-card:last-child:not(.active) {
  border-right-color: transparent;
}

/* Final top-category hover visibility override without a circle backing. */
.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon {
  opacity: 1 !important;
  color: #078c49 !important;
  transform: none !important;
}

.catalog-panel .category-list.category-strip .category-parent-row:hover .category-icon::before,
.catalog-panel .category-list.category-strip .parent-category:hover .category-icon::before {
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
  box-shadow: none !important;
}

body.cart-open .cart-close,
body.cart-open .cart-close-inline {
  position: absolute;
  z-index: 2;
}

/* Keep the catalog field green only inside the catalog area. */
html,
body {
  background: #ffffff;
}

body {
  min-height: 100vh;
}

main#top {
  background: #e3efdf;
  min-height: 0;
}

.site-footer {
  position: relative;
  background: #ffffff;
  min-height: 0;
}

@media (max-width: 1320px) {
  .cart-fab-anchor,
  .cart-fab-anchor.is-catalog-bound {
    position: fixed !important;
    top: auto !important;
    right: 16px !important;
    bottom: 20px !important;
    left: auto !important;
    width: 68px;
    height: 68px;
  }

  .cart-fab {
    position: static;
  }
}

/* Assistant app download buttons: keep one left axis and equal badge containers. */
.app-download {
  padding: 14px 14px 16px;
}

.app-download .app-download-store-buttons,
.site-footer .footer-app .app-download-store-buttons {
  align-items: flex-start !important;
  gap: 8px !important;
  width: 168px !important;
  max-width: 100% !important;
  margin-top: 12px !important;
}

.app-download .app-download-store-buttons .footer-store-button,
.site-footer .footer-app .app-download-store-buttons .footer-store-button {
  width: 168px !important;
  height: 42px !important;
  max-width: 100% !important;
  padding: 1px 8px 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible;
  border: 1px solid #e1e5e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(18, 32, 24, 0.08);
}

.app-download-store-buttons .footer-store-button img {
  display: block;
  width: 152px;
  height: 34px;
  max-width: 152px;
  max-height: 34px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .app-download .app-download-store-buttons,
.site-footer .footer-app .app-download-store-buttons {
    width: 160px !important;
    margin-top: 12px !important;
  }

  .app-download .app-download-store-buttons .footer-store-button,
.site-footer .footer-app .app-download-store-buttons .footer-store-button {
    width: 160px !important;
    height: 42px !important;
    padding: 1px 8px 0 !important;
  }

  .app-download-store-buttons .footer-store-button img {
    width: 144px;
    height: 34px;
    max-width: 144px;
    max-height: 34px;
  }
}

/* === Basket alignment consolidation: 2026-07-11 ===
   Final scoped layer. Normalizes geometry without touching catalog styles. */
.basket-section,
.basket-section * {
  box-sizing: border-box;
}

body.cart-open .basket-section {
  width: min(720px, 100vw) !important;
}

.basket-board {
  gap: 14px;
  padding: 18px 24px 0;
  scrollbar-gutter: stable;
}

.basket-drawer-head,
.basket-hero-card,
.basket-actions,
.basket-store-section,
.basket-cost-section,
.basket-list-section,
.basket-summary-footer {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.basket-drawer-head > div,
.basket-drawer-head h2 {
  min-width: 0;
}

.basket-drawer-head h2 {
  flex-wrap: wrap;
  row-gap: 8px;
}

.basket-hero-card {
  grid-template-columns: minmax(0, 1fr) 92px;
  column-gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.basket-hero-card > div {
  align-self: center;
}

.basket-hero-card > img {
  justify-self: center;
  align-self: center;
  width: 84px;
  height: 84px;
  padding: 15px;
}

.basket-hero-card strong,
.basket-hero-card .basket-badge,
.basket-hero-card .basket-saving-line,
.basket-info-wrapper,
.basket-info-dot {
  vertical-align: middle;
}

.basket-hero-card .basket-badge {
  align-items: center;
  gap: 7px;
}

.basket-info-dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-indent: 0;
  transform: none;
}

.basket-info-dot.basket-info-mixed::before {
  content: "";
  display: block;
  width: 4px;
  height: 10px;
  margin: 0;
  transform: none;
  background:
    radial-gradient(circle at 50% 1.5px, currentColor 0 1.5px, transparent 1.6px),
    linear-gradient(currentColor, currentColor) center bottom / 2px 6px no-repeat;
}

.basket-info-popover {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(430px, calc(100vw - 48px));
}

.basket-popover-icon,
.basket-hero-card .basket-popover-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 0;
  border: 0;
  background-color: transparent;
  overflow: hidden;
  line-height: 0;
}

.basket-popover-icon img,
.basket-popover-icon-mixed img,
.basket-popover-icon-saving img,
.basket-hero-card .basket-popover-icon img {
  display: block !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
}

.basket-popover-content {
  min-width: 0;
  align-self: center;
}

.basket-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 62px;
  align-items: stretch;
}

.basket-actions > button {
  min-width: 0;
  height: 46px;
}

.basket-store-picker {
  align-items: center;
  gap: 10px;
}

.basket-cost-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.basket-cost-card {
  min-width: 0;
}

.basket-list-title {
  align-items: baseline;
}

.basket-list-row {
  grid-template-columns: 22px 40px minmax(110px, 1fr) 72px 82px minmax(190px, 1.25fr) 24px;
  align-items: center;
  column-gap: 8px;
  min-height: 82px;
  padding: 9px 10px;
}

.basket-row-check,
.basket-row-photo,
.basket-row-main,
.basket-row-qty,
.basket-row-price,
.basket-row-stores,
.basket-row-remove {
  align-self: center;
}

.basket-row-photo {
  justify-self: center;
  width: 38px;
  height: 48px;
}

.basket-row-qty {
  justify-self: center;
  width: 72px;
}

.basket-row-price {
  min-width: 0;
}

.basket-row-stores {
  width: 100%;
  min-width: 0;
}

.basket-store-price,
.basket-store-top,
.basket-store-icon,
.basket-store-badge {
  align-items: center;
  justify-content: center;
}

.basket-store-icon img,
.basket-store-icon svg,
.basket-store-badge {
  display: block;
  margin: 0;
  object-position: 50% 50%;
}

.basket-row-remove {
  justify-self: center;
}

.basket-summary-footer {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 210px) auto;
  margin-right: -24px;
  margin-left: -24px;
  padding-right: 24px;
  padding-left: 24px;
}

@media (max-width: 760px) {
  .basket-board {
    padding: 16px 14px 0;
  }

  .basket-hero-card {
    grid-template-columns: minmax(0, 1fr) 72px;
    column-gap: 12px;
  }

  .basket-hero-card > img {
    width: 68px;
    height: 68px;
    padding: 12px;
  }

  .basket-info-popover {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
  }

  .basket-popover-icon,
  .basket-hero-card .basket-popover-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .basket-popover-icon img,
  .basket-popover-icon-mixed img,
  .basket-popover-icon-saving img,
  .basket-hero-card .basket-popover-icon img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
  }

  .basket-actions {
    grid-template-columns: 1fr 1fr 52px;
  }

  .basket-cost-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .basket-list-row {
    grid-template-columns: 22px 40px minmax(0, 1fr) 24px;
    row-gap: 8px;
  }

  .basket-row-qty,
  .basket-row-price,
  .basket-row-stores {
    grid-column: 3 / 5;
    justify-self: stretch;
  }

  .basket-row-qty {
    width: 72px;
    justify-self: start;
  }

  .basket-summary-footer {
    grid-template-columns: 1fr;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .basket-summary-footer > strong {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .basket-drawer-head h2 {
    font-size: 21px;
  }

  .basket-hero-card {
    grid-template-columns: minmax(0, 1fr) 62px;
    padding: 13px;
  }

  .basket-hero-card > img {
    width: 58px;
    height: 58px;
    padding: 10px;
  }

  .basket-actions {
    grid-template-columns: 1fr;
  }

  .basket-icon-action {
    width: 100%;
  }
}

/* Basket tooltip icon composition: one balanced decorative icon per popover. */
.basket-hero-card .basket-info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  transform: none;
}

.basket-hero-card .basket-info-dot::before {
  content: "";
  display: block;
  width: 4px;
  height: 10px;
  flex: 0 0 4px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 1.5px, currentColor 0 1.5px, transparent 1.6px),
    linear-gradient(currentColor, currentColor) center bottom / 2px 6px no-repeat;
  transform: none;
}

.basket-info-wrapper:hover,
.basket-info-wrapper:focus-within,
.basket-info-wrapper.is-open {
  z-index: 110;
}

.basket-info-popover {
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  width: min(400px, calc(100vw - 48px));
}

.basket-hero-card .basket-popover-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  overflow: hidden;
}

.basket-hero-card .basket-popover-icon-saving {
  background: linear-gradient(180deg, #19b866 0%, #079447 100%);
  box-shadow: 0 8px 18px rgba(7, 148, 71, 0.16);
}

.basket-hero-card .basket-popover-icon-saving img {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  justify-self: center !important;
  align-self: center !important;
  transform: none !important;
}

.basket-hero-card .basket-popover-icon-mixed {
  background: linear-gradient(180deg, #19b866 0%, #079447 100%);
  box-shadow: 0 8px 18px rgba(7, 148, 71, 0.16);
}

.basket-hero-card .basket-popover-icon-mixed img {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  justify-self: center !important;
  align-self: center !important;
  transform: none !important;
}

@media (min-width: 761px) {
  .basket-info-wrapper:not(.basket-info-wrapper-saving) .basket-info-popover {
    right: 0;
    left: auto;
    transform: translateY(8px);
  }

  .basket-info-wrapper:not(.basket-info-wrapper-saving) .basket-info-popover::before {
    right: 1px;
    left: auto;
    transform: rotate(45deg);
  }

  .basket-info-wrapper:not(.basket-info-wrapper-saving):hover .basket-info-popover,
  .basket-info-wrapper:not(.basket-info-wrapper-saving):focus-within .basket-info-popover,
  .basket-info-wrapper:not(.basket-info-wrapper-saving).is-open .basket-info-popover {
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .basket-info-popover {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
  }

  .basket-hero-card .basket-popover-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .basket-hero-card .basket-popover-icon-saving img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }

  .basket-hero-card .basket-popover-icon-mixed img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }
}

/* Integration override: keep this block last. */
body .basket-section{width:min(796px,100vw)!important;max-width:100vw!important;padding:0!important;overflow:hidden!important;background:#fff!important}
body .basket-section .basket-board{height:100%!important;max-height:none!important;padding:0 30px!important;display:flex!important;flex-direction:column!important;gap:0!important;overflow:hidden!important;background:#fff!important}
body .basket-section .basket-drawer-head{height:63px!important;min-height:63px!important;padding:0!important;border-bottom:1px solid #e2e7e4!important}
body .basket-section .basket-drawer-head h2{margin:0!important;color:#101828!important;font-size:25px!important;line-height:1!important;font-weight:800!important}
body .basket-section .cart-close-inline{width:32px!important;min-height:32px!important;padding:0!important;border:0!important;color:#101828!important;background:transparent!important;font-size:27px!important}
body .basket-section .basket-price-table{display:block!important;min-height:0!important;flex:1 1 auto!important;overflow:auto!important}
body .basket-section .basket-approved-footer{position:static!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}
@media(max-width:796px){body .basket-section .basket-board{padding:0 16px!important}}
@media(min-width:797px){body.cart-open .basket-section{right:calc((100vw - 1280px)*.14)!important;width:884.45px!important;max-width:none!important;height:111.112vh!important;zoom:1}}
@media(max-width:796px){body.cart-open .basket-section{right:-17.56px!important;width:111.112vw!important;max-width:none!important;height:111.112vh!important}}

/* Compact desktop cart alignment: unified geometry, no behavior changes. */
@media(min-width:797px){
  body.cart-open .basket-section{right:min(0px,calc((100vw - 1280px)*.14))!important;width:800px!important;height:111.112vh!important;max-width:none!important}
  body .basket-section .basket-board{padding-right:22px!important;padding-left:22px!important}
}
body .basket-section .basket-drawer-head,
body .basket-section .basket-approved-summary,
body .basket-section .basket-pricing-tools,
body .basket-section .basket-approved-tabs,
body .basket-section .basket-networks,
body .basket-section .basket-price-table,
body .basket-section .basket-approved-footer{width:100%;max-width:none;margin-right:0;margin-left:0}
@media(min-width:797px){.basket-drawer-head{height:45px!important;min-height:45px!important}.basket-drawer-head h2{font-size:24px!important;line-height:1.1!important}.basket-approved-summary{height:62px!important;min-height:62px!important;flex:0 0 62px!important;padding:8px 13px!important}.basket-approved-summary span{font-size:12px!important;line-height:15px!important}.basket-approved-summary strong{font-size:21px!important;line-height:24px!important}.basket-pricing-tools{height:42px;flex-basis:42px;padding-bottom:4px}.basket-pricing-tools p{height:16px;margin:3px 0 0;font-size:11px;line-height:13px}.basket-mode-switch{height:35px}.basket-type-control{height:35px}.basket-type-option{font-size:12px;line-height:14px}.basket-approved-tabs{height:40px;flex-basis:40px}.basket-approved-tab{min-height:40px;font-size:14px}.basket-approved-tab::after{height:2px}.basket-networks{height:106px;flex-basis:106px}.basket-network-title{height:34px;font-size:13px}.basket-network-title strong,.basket-sort-button{font-size:13px}.basket-network-scroll{height:72px;grid-auto-columns:minmax(0,1fr)}.basket-network-card{height:71px;grid-template-columns:31px minmax(0,1fr);grid-template-rows:28px 22px;padding:9px 12px 8px;align-content:center}.basket-network-card::after{bottom:0;height:2px}.basket-network-logo{width:27px;height:27px}.basket-network-card b{align-self:end;font-size:13px;line-height:15px}.basket-network-card strong{align-self:start;font-size:15px;line-height:17px}.basket-price-head{height:31px;grid-template-columns:minmax(330px,1fr) 76px repeat(3,91px) 29px;align-items:stretch;font-size:10px}.basket-price-head span{display:flex;align-items:center;justify-content:center}.basket-price-head span:first-child{justify-content:flex-start}.basket-price-rows{min-width:0;width:100%}.basket-price-row{height:62px;min-height:62px;grid-template-columns:24px 40px minmax(216px,1fr) 76px repeat(3,91px) 29px;align-items:stretch}.basket-price-row>*{min-width:0}.basket-price-row .basket-row-check,.basket-price-row .basket-row-photo,.basket-price-row .basket-row-main,.basket-price-row .basket-row-qty,.basket-price-row .basket-row-remove{align-self:center}.basket-price-row .basket-row-check input{width:18px;height:18px}.basket-price-row .basket-row-photo{width:34px;height:44px;object-fit:contain;flex-shrink:0}.basket-price-row .basket-row-photo.is-missing{border:1px solid #e2e7e4;border-radius:6px;background:#f5f7f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909a95' stroke-width='1.6'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Cpath d='m6.5 16 4-4 3 3 2-2 2 3'/%3E%3Ccircle cx='9' cy='9' r='1.3'/%3E%3C/svg%3E") center/20px 20px no-repeat}.basket-price-row .basket-row-main{padding:0 8px 0 4px}.basket-price-row .basket-row-main strong{font-size:13px;line-height:15px;font-weight:700;-webkit-line-clamp:2}.basket-price-row .basket-row-main small{margin-top:2px;font-size:10px;line-height:12px}.basket-price-row .basket-row-qty{width:74px;height:33px;justify-self:center;border-radius:7px}.basket-row-qty button{width:24px;font-size:14px}.basket-row-qty span{font-size:12px}.basket-price-cell{width:100%;height:100%;min-height:0;align-self:stretch;border-left:1px solid #e0e5e2}.basket-price-cell b{font-size:13px;line-height:15px;font-weight:700}.basket-price-cell small{font-size:10px;line-height:12px}.basket-price-cell.selected{box-shadow:inset 0 0 0 1px #079447}.basket-price-cell.is-missing,.basket-price-cell.is-unavailable{font-size:10px}.basket-row-remove{display:flex;align-items:center;justify-content:center;width:29px;height:100%;padding:0;font-size:16px}.basket-row-remove svg{width:16px;height:16px}.basket-approved-footer{height:62px!important;flex-basis:62px!important;min-height:62px;flex-shrink:0;padding:0!important;border-top:1px solid #e1e6e3!important;background:#fff!important}.basket-approved-secondary{gap:18px}.basket-approved-secondary button{height:40px;font-size:12px}.basket-approved-footer .basket-footer-action{width:218px;height:42px;padding:0 16px;font-size:14px}}
@media(max-width:796px){.basket-price-table{overflow:auto}.basket-price-head,.basket-price-rows{min-width:742px;width:742px}.basket-price-head{grid-template-columns:246px 70px repeat(3,135px) 21px}.basket-price-row{height:65px;min-height:65px;grid-template-columns:24px 42px 180px 70px repeat(3,135px) 21px}.basket-price-row .basket-row-main{padding-right:8px}.basket-price-row .basket-row-main strong{font-size:12px;line-height:14px;word-break:normal;overflow-wrap:anywhere}.basket-price-row .basket-row-main small{font-size:11px}.basket-price-row .basket-row-photo{width:36px;height:46px}.basket-price-cell b{font-size:13px}.basket-price-cell small{font-size:9px}.basket-approved-footer{height:64px!important;min-height:64px;flex-basis:64px!important}}

/* Test page product sections: scoped structure only, existing cards stay untouched. */
.test-page .catalog-filter-panel {
  display: none;
}

.test-page .catalog-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  row-gap: 0;
}

.test-page.test-catalog-list-mode .catalog-filter-panel {
  display: flex;
}

.test-page.test-catalog-list-mode .catalog-panel {
  position: relative;
  z-index: 7;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 18px;
  overflow: visible;
  border: 1px solid #e3eadf;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(17, 24, 39, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  row-gap: 3px;
  column-gap: 11px;
}

.test-page .catalog-nav {
  margin-bottom: 11px;
  padding: 18px 71px 18px 30px;
  border: 1px solid #e3eadf;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(17, 24, 39, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.test-page.test-catalog-list-mode .catalog-nav {
  margin: 0 0 14px;
  padding: 0 53px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.test-page .catalog-nav::after {
  content: none;
}

.test-page.test-catalog-list-mode .catalog-nav::after {
  content: "";
}

.test-page .product-grid.test-home-sections {
  display: block;
  padding-right: 0;
}

.test-page .test-home-products-section {
  margin: 0;
  padding: 18px 24px;
  border: 1px solid #e3eadf;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(17, 24, 39, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.test-page .test-home-products-section + .test-home-products-section {
  margin-top: 11px;
}

.test-page .test-home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}

.test-page .test-home-section-copy {
  min-width: 0;
}

.test-page .test-home-section-title {
  margin: 0;
  color: #111827;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.test-page .test-home-section-subtitle {
  margin: 4px 0 0;
  color: #7b8495;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.test-page .test-section-more {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: #079447;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.test-page .test-section-more__icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.test-page .test-section-more:hover {
  color: #057a39;
}

.test-page .test-section-more:hover .test-section-more__icon {
  transform: translateX(3px);
}

.test-page .test-section-more:focus-visible {
  outline: 2px solid rgba(7, 148, 71, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.test-page .test-home-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .test-page .test-home-section-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 760px) {
  .test-page .product-grid.test-home-sections {
    padding-right: 0;
  }

  .test-page.test-catalog-list-mode .catalog-panel {
    padding: 12px;
  }

  .test-page .catalog-nav,
  .test-page .test-home-products-section {
    padding: 12px;
    border-radius: 16px;
  }

  .test-page .test-home-products-section + .test-home-products-section {
    margin-top: 11px;
  }

  .test-page .test-home-section-head {
    gap: 10px;
    margin-bottom: 9px;
  }

  .test-page .test-home-section-title {
    font-size: 17px;
    line-height: 1.18;
  }

  .test-page .test-home-section-subtitle {
    max-width: 230px;
    font-size: 12px;
  }

  .test-page .test-section-more {
    margin-top: 2px;
  }

  .test-page .test-home-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Final basket selection overrides after legacy compact drawer rules. */
.basket-section .cart-selection-hint {
  min-height: 64px;
}

.basket-section .basket-network-scroll {
  grid-auto-columns: minmax(184px, 184px) !important;
}

.basket-section .basket-network-card {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 22px !important;
  grid-template-rows: 18px 24px 15px !important;
  column-gap: 9px !important;
  row-gap: 1px !important;
  align-items: center !important;
  min-width: 184px;
  min-height: 71px;
  padding: 8px 10px !important;
  box-sizing: border-box;
}

.basket-section .basket-network-logo {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center;
  justify-self: center;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}

.basket-section .basket-network-card b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  min-width: 0;
  padding-right: 2px;
  overflow: hidden;
  color: #17211b;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-section .basket-network-card strong {
  grid-column: 2 / 4 !important;
  grid-row: 2 !important;
  align-self: center !important;
  min-width: 0;
  overflow: visible !important;
  color: #101828;
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: clip !important;
}

.basket-section .basket-network-card small {
  grid-column: 2 / 4 !important;
  grid-row: 3 !important;
  align-self: start !important;
  min-width: 0;
  overflow: hidden;
  color: #66746d;
  font-size: 11px !important;
  line-height: 13px !important;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basket-section .basket-network-card.disabled strong {
  color: #7b8780;
}

.basket-section .basket-network-check {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: start;
  justify-self: end;
  width: 18px;
  height: 18px;
}

.basket-section .basket-price-head,
.basket-section .basket-price-row {
  grid-template-columns: var(--unused, inherit);
}

.basket-section .basket-price-cell.manual {
  box-shadow: inset 0 0 0 2px rgba(7, 148, 71, 0.48) !important;
}

/* Category icon tuning: make selected category icons 7% smaller in category blocks. */
.category-strip .category-icon > .category-img[src*="zamorozka"],
.category-strip .category-icon > .category-img[data-src*="zamorozka"],
.category-strip .category-icon > .category-img[src*="konservy"],
.category-strip .category-icon > .category-img[data-src*="konservy"],
.category-strip .category-button.category-image-card .category-img[src*="zamorozka"],
.category-strip .category-button.category-image-card .category-img[data-src*="zamorozka"],
.category-strip .category-button.category-image-card .category-img[src*="konservy"],
.category-strip .category-button.category-image-card .category-img[data-src*="konservy"] {
  width: 27.9px !important;
  height: 27.9px !important;
}

.catalog-sticky-control .category-strip .category-icon > .category-img[src*="zamorozka"],
.catalog-sticky-control .category-strip .category-icon > .category-img[data-src*="zamorozka"],
.catalog-sticky-control .category-strip .category-icon > .category-img[src*="konservy"],
.catalog-sticky-control .category-strip .category-icon > .category-img[data-src*="konservy"] {
  width: 23.25px !important;
  height: 23.25px !important;
}

.side-category-panel .side-category-icon > .category-img[src*="zamorozka"],
.side-category-panel .side-category-icon > .category-img[data-src*="zamorozka"],
.side-category-panel .side-category-icon > .category-img[src*="konservy"],
.side-category-panel .side-category-icon > .category-img[data-src*="konservy"],
.side-category-panel .side-category-title-icon > .category-img[src*="zamorozka"],
.side-category-panel .side-category-title-icon > .category-img[data-src*="zamorozka"],
.side-category-panel .side-category-title-icon > .category-img[src*="konservy"],
.side-category-panel .side-category-title-icon > .category-img[data-src*="konservy"] {
  width: 26.04px !important;
  height: 26.04px !important;
}

/* Product card more-prices button: text only, no chevron/check mark. */
.catalog-panel .product-grid .card-store-section .more-stores::after,
.test-page .test-home-section-grid .product-card .card-store-section .more-stores::after {
  content: none !important;
  display: none !important;
}

/* Cart drawer edge reveal: open from the right edge toward the left, like the product price reveal. */
body .cart-backdrop {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 220ms ease, visibility 0s linear 220ms !important;
}

body.cart-open .cart-backdrop,
body.cart-closing .cart-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 220ms ease, visibility 0s linear 0s !important;
}

body:not(.cart-open) .basket-section,
body.cart-open .basket-section,
body.cart-closing .basket-section {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  overflow: hidden !important;
  will-change: clip-path, opacity !important;
}

body:not(.cart-open) .basket-section {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  clip-path: inset(0 0 0 100%) !important;
  transition: clip-path 360ms cubic-bezier(0.22, 0.72, 0.18, 1), opacity 180ms ease, visibility 0s linear 360ms !important;
}

body.cart-open .basket-section {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  clip-path: inset(0 0 0 0) !important;
  transform: none !important;
  transition: clip-path 360ms cubic-bezier(0.22, 0.72, 0.18, 1), opacity 120ms ease, visibility 0s linear 0s !important;
}

body.cart-closing .cart-backdrop {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 220ms ease, visibility 0s linear 220ms !important;
}

body.cart-closing .basket-section {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  clip-path: inset(0 0 0 100%) !important;
  transform: none !important;
  transition: clip-path 360ms cubic-bezier(0.22, 0.72, 0.18, 1), visibility 0s linear 360ms !important;
}

html.cart-closing,
body.cart-closing {
  overflow: hidden !important;
}

body.cart-closing .basket-section {
  z-index: var(--z-cart-drawer) !important;
  max-width: none !important;
  max-height: none !important;
}

@media (min-width: 797px) {
  body.cart-closing .basket-section {
    right: min(0px, calc((100vw - 1280px) * 0.14)) !important;
    width: 800px !important;
    height: 111.112vh !important;
  }
}

@media (max-width: 796px) {
  body.cart-closing .basket-section {
    right: -17.56px !important;
    width: 111.112vw !important;
    height: 111.112vh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .cart-backdrop,
  body .basket-section {
    transition: none !important;
  }
}

/* Basket store cards: stable three-line layout for logo, store total and availability. */
body .basket-section .basket-network-scroll {
  grid-auto-columns: 184px !important;
  height: 76px !important;
}

body .basket-section .basket-network-card {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 22px !important;
  grid-template-rows: 18px 24px 15px !important;
  align-items: center !important;
  min-width: 184px !important;
  width: 184px !important;
  height: 74px !important;
  min-height: 74px !important;
  padding: 8px 10px !important;
  column-gap: 9px !important;
  row-gap: 1px !important;
  box-sizing: border-box !important;
}

body .basket-section .basket-network-logo {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
}

body .basket-section .basket-network-card b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  min-width: 0 !important;
  padding-right: 2px !important;
  overflow: hidden !important;
  color: #17211b !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .basket-section .basket-network-card strong {
  grid-column: 2 / 4 !important;
  grid-row: 2 !important;
  align-self: center !important;
  min-width: 0 !important;
  overflow: visible !important;
  color: #101828 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

body .basket-section .basket-network-card small {
  grid-column: 2 / 4 !important;
  grid-row: 3 !important;
  align-self: start !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #66746d !important;
  font-size: 11px !important;
  line-height: 13px !important;
  font-weight: 500 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .basket-section .basket-network-card.disabled strong {
  color: #7b8780 !important;
}

body .basket-section .basket-network-check {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: start !important;
  justify-self: end !important;
  width: 18px !important;
  height: 18px !important;
}

/* Store cards keep their outer size while reserving coverage, choice and status. */
body .basket-section .basket-network-card {
  grid-template-rows: 15px 20px 27px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  row-gap: 0 !important;
}

body .basket-section .basket-network-card b {
  line-height: 15px !important;
}

body .basket-section .basket-network-card strong {
  line-height: 20px !important;
}

body .basket-section .basket-network-card small {
  display: grid !important;
  grid-template-rows: repeat(3, 9px);
  align-content: start;
  overflow: visible !important;
  font-size: 9px !important;
  line-height: 9px !important;
  text-overflow: clip !important;
}

body .basket-section .basket-network-card small > span {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body .basket-section .basket-network-difference.is-best {
  color: #079447;
  font-weight: 700;
}

body .basket-section .basket-network-difference.is-higher {
  color: #8a6338;
}

body .basket-section .basket-network-difference.is-incomplete {
  color: #718078;
}

body .basket-section .basket-network-selection {
  color: #66746d;
}

/* Cart drawer title follows the home section title style. */
body .basket-section .basket-drawer-head h2 {
  margin: 0 !important;
  color: #172033 !important;
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* Match the shopping-list header to the watch dialog and assistant title. */
body .basket-section .basket-drawer-head {
  justify-content: space-between !important;
  gap: 12px !important;
}

body .basket-section .basket-drawer-head .cart-close-inline {
  position: static !important;
  order: 2;
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #e4e9ef !important;
  border-radius: 999px !important;
  color: #68747e !important;
  background: #fff !important;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body .basket-section .basket-drawer-head h2 {
  order: 1;
}

body .basket-section .basket-drawer-head .cart-close-inline:hover {
  border-color: rgba(7, 148, 71, 0.35) !important;
  color: #079447 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(7, 148, 71, 0.12) !important;
}

body .basket-section .basket-drawer-head .cart-close-inline:focus-visible {
  border-color: rgba(7, 148, 71, 0.35) !important;
  color: #079447 !important;
  background: #fff !important;
  outline: 2px solid #079447 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

@media (max-width: 860px) {
  body .basket-section .basket-drawer-head .cart-close-inline {
    flex-basis: 50px;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
  }
}

/* Keep the floating shopping-list button independent from cart page compensation. */
@media (min-width: 1321px) {
  body .cart-fab-anchor,
  body .cart-fab-anchor.is-catalog-bound,
  body.cart-open .cart-fab-anchor,
  body.cart-closing .cart-fab-anchor {
    position: fixed !important;
    top: auto !important;
    right: calc((100vw - 1440px) / 2 - 4px) !important;
    bottom: calc(10vh - 49px) !important;
    left: auto !important;
    width: 68px !important;
    height: 68px !important;
    transform: none !important;
  }

  body .cart-fab {
    position: static !important;
  }
}

/* Cart drawer rhythm and desktop grid alignment. */
body .basket-section .basket-network-shell {
  margin-top: 8px;
}

body .basket-section .basket-networks {
  height: 137px;
  flex: 0 0 137px;
}

body .basket-section .basket-price-table {
  margin-top: 5px;
}

body .basket-section .basket-price-rows {
  padding-top: 6px;
}

body .basket-section .basket-approved-footer {
  align-items: flex-end;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 797px) {
  body .basket-section .basket-networks {
    height: 126px;
    flex-basis: 126px;
  }

  body .basket-section .basket-row-remove {
    width: 100%;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-approved-footer {
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    min-height: calc(64px + env(safe-area-inset-bottom));
    flex-basis: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}

/* Public header responsive contract: keep every control inside the shared page container. */
.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: var(--page-container-max);
  min-height: 68px;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-container-pad);
  padding-left: var(--page-container-pad);
  column-gap: clamp(18px, 1.7vw, 32px);
  overflow: visible;
}

.topbar .brand,
.topbar .top-actions {
  transform: none;
}

.topbar .brand {
  grid-column: 1;
  min-width: 0;
  order: 0;
}

.topbar .nav {
  grid-column: 2;
  min-width: 0;
  width: auto;
  order: 0;
  gap: clamp(14px, 1.35vw, 22px);
  overflow: visible;
  transform: none;
}

.topbar .top-actions {
  grid-column: 3;
  min-width: 0;
  width: auto;
  order: 0;
  gap: 10px;
}

.topbar .location-button,
.topbar .login-button {
  min-width: 0;
}

.location-button__label {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.topbar a:focus-visible,
.topbar button:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.28);
  outline-offset: 3px;
}

@media (max-width: 1199px) and (min-width: 901px) {
  .topbar {
    column-gap: 14px;
  }

  .brand-logo-img {
    width: 174px;
  }

  .topbar .nav {
    gap: 10px;
  }

  .topbar .nav a {
    font-size: 13px;
  }

  .topbar .top-actions {
    gap: 7px;
  }

  .topbar .location-button,
  .topbar .login-button {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 13px;
  }

  .location-button__label {
    max-width: 104px;
  }
}

@media (max-width: 1050px) and (min-width: 901px) {
  .topbar .location-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .topbar .location-button__label {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 68px;
    padding: 0 var(--page-container-pad);
    column-gap: 8px;
  }

  .topbar .brand {
    grid-column: 1;
    justify-self: start;
    max-width: 100%;
  }

  .brand-logo-img {
    width: clamp(148px, 45vw, 190px);
    max-width: 100%;
  }

  .topbar > .nav,
  .topbar .login-button {
    display: none;
  }

  .topbar .top-actions {
    display: contents;
  }

  .topbar .location-button {
    grid-column: 2;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border-radius: 12px;
  }

  .topbar .location-button__label {
    display: none;
  }

  .mobile-menu-toggle {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    color: #172033;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  }

  .mobile-menu-toggle svg,
  .mobile-menu__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .mobile-menu {
    position: fixed !important;
    inset: var(--public-header-height, 68px) 0 0 !important;
    z-index: 8999 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    overflow: hidden;
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.3);
    touch-action: none;
  }

  .mobile-menu__panel {
    position: relative;
    z-index: 1;
    justify-self: end;
    width: min(360px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: #ffffff;
    box-shadow: -12px 0 34px rgba(15, 23, 42, 0.14);
  }

  .mobile-menu__head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ece5;
  }

  .mobile-menu__head strong {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-menu__close {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #172033;
    background: #f5f7f6;
  }

  .mobile-menu__nav {
    display: grid;
    gap: 4px;
    padding: 12px 0;
  }

  .mobile-menu__nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-menu__nav a.active {
    color: #079447;
    background: #eef8f2;
  }

  .mobile-menu__profile {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: auto;
    padding: 0 14px;
    border: 1px solid #bfe5ce;
    border-radius: 12px;
    color: #079447;
    background: #f4fbf7;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-menu__profile svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-menu__close:focus,
  .mobile-menu__nav a:focus,
  .mobile-menu__profile:focus {
    outline: 3px solid rgba(7, 148, 71, 0.28);
    outline-offset: 3px;
  }
}

@media (max-width: 640px) {
  .topbar {
    --page-container-pad: 12px;
  }
}

/* Mobile product-card contract: readable store rows and accessible actions. */
@media (max-width: 900px) {
  .test-page .test-home-section-grid .product-card,
  .test-page .catalog-panel .product-grid .product-card {
    --home-card-height: 400px;
    --home-price-area-height: 159px;
    --home-price-list-height: 102px;
  }

  .test-page .test-home-section-grid .product-card .product-media,
  .test-page .catalog-panel .product-grid .product-card .product-media {
    flex-basis: 174px !important;
    height: 174px !important;
  }

  .test-page .test-home-section-grid .product-card .product-meta,
  .test-page .catalog-panel .product-grid .product-card .product-meta {
    grid-template-rows: 54px var(--home-price-area-height);
  }

  .test-page .test-home-section-grid .card-store-row,
  .test-page .test-home-section-grid .card-store-row.is-best,
  .test-page .test-home-section-grid .card-store-row.best-store,
  .test-page .catalog-panel .product-grid .card-store-row,
  .test-page .catalog-panel .product-grid .card-store-row.is-best,
  .test-page .catalog-panel .product-grid .card-store-row.best-store {
    grid-template-columns: 20px minmax(67px, 1fr) max-content !important;
    column-gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    overflow: visible;
  }

  .test-page .test-home-section-grid .store-logo.store-icon,
  .test-page .catalog-panel .product-grid .store-logo.store-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
  }

  .test-page .test-home-section-grid .store-name,
  .test-page .test-home-section-grid .card-store-name,
  .test-page .catalog-panel .product-grid .store-name,
  .test-page .catalog-panel .product-grid .card-store-name {
    min-width: 67px !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .test-page .test-home-section-grid .store-price,
  .test-page .catalog-panel .product-grid .store-price {
    justify-self: end;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible;
    text-align: right;
    white-space: nowrap;
  }

  .test-page .test-home-section-grid .favorite-button,
  .test-page .test-home-section-grid .price-alert-button,
  .test-page .test-home-section-grid .shopping-list-button,
  .test-page .catalog-panel .product-grid .favorite-button,
  .test-page .catalog-panel .product-grid .price-alert-button,
  .test-page .catalog-panel .product-grid .shopping-list-button {
    right: 14px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .test-page .test-home-section-grid .favorite-button,
  .test-page .catalog-panel .product-grid .favorite-button {
    top: 14px;
  }

  .test-page .test-home-section-grid .price-alert-button,
  .test-page .catalog-panel .product-grid .price-alert-button {
    top: 70px;
  }

  .test-page .test-home-section-grid .shopping-list-button,
  .test-page .catalog-panel .product-grid .shopping-list-button {
    top: 126px;
  }

  .test-page .test-home-section-grid .favorite-button:focus-visible,
  .test-page .test-home-section-grid .price-alert-button:focus-visible,
  .test-page .test-home-section-grid .shopping-list-button:focus-visible,
  .test-page .catalog-panel .product-grid .favorite-button:focus-visible,
  .test-page .catalog-panel .product-grid .price-alert-button:focus-visible,
  .test-page .catalog-panel .product-grid .shopping-list-button:focus-visible {
    outline: 3px solid rgba(7, 148, 71, 0.3) !important;
    outline-offset: 2px;
  }

  .test-page .test-home-section-grid .product-card .card-store-section .more-stores,
  .test-page .catalog-panel .product-grid .product-card .card-store-section .more-stores {
    bottom: 0 !important;
    width: 160px !important;
    min-height: 50px;
  }

  .test-page .test-home-section-grid .product-card .card-store-section .more-stores:focus-visible,
  .test-page .catalog-panel .product-grid .product-card .card-store-section .more-stores:focus-visible {
    outline: 3px solid rgba(7, 148, 71, 0.3);
    outline-offset: -2px;
  }
}

@media (max-width: 519px) {
  .test-page .test-home-section-grid,
  .test-page .catalog-panel .product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .test-page .test-home-section-grid .product-card,
  .test-page .catalog-panel .product-grid .product-card {
    --home-card-height: 370px;
    --home-price-area-height: 147px;
    --home-price-list-height: 93px;
  }

  .test-page .test-home-section-grid .product-card .product-media,
  .test-page .catalog-panel .product-grid .product-card .product-media {
    flex-basis: 170px !important;
    height: 170px !important;
  }

  .test-page .test-home-section-grid .product-card .product-meta,
  .test-page .catalog-panel .product-grid .product-card .product-meta {
    grid-template-rows: 50px var(--home-price-area-height);
  }

  .test-page .test-home-section-grid .favorite-button,
  .test-page .test-home-section-grid .price-alert-button,
  .test-page .test-home-section-grid .shopping-list-button,
  .test-page .catalog-panel .product-grid .favorite-button,
  .test-page .catalog-panel .product-grid .price-alert-button,
  .test-page .catalog-panel .product-grid .shopping-list-button {
    right: 10px;
  }

  .test-page .test-home-section-grid .favorite-button,
  .test-page .catalog-panel .product-grid .favorite-button {
    top: 10px;
  }

  .test-page .test-home-section-grid .price-alert-button,
  .test-page .catalog-panel .product-grid .price-alert-button {
    top: 65px;
  }

  .test-page .test-home-section-grid .shopping-list-button,
  .test-page .catalog-panel .product-grid .shopping-list-button {
    top: 120px;
  }
}

/* Mobile catalog-filter contract: contain every control without horizontal clipping. */
@media (max-width: 860px) {
  body.test-page.test-catalog-list-mode .catalog-filter-panel,
  body.test-page.test-catalog-list-mode.catalog-sticky-active .catalog-filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 10px 0;
    overflow: visible;
    box-sizing: border-box;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) > *,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-dropdown,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .sort-dropdown {
    min-width: 0;
    max-width: 100%;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-stores,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort {
    width: 100%;
    margin: 0;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-stores {
    grid-column: 1;
    grid-row: 1;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort {
    grid-column: 2;
    grid-row: 1;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort .sort-dropdown {
    width: 100%;
    margin-left: 0;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-dropdown > summary,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort .sort-dropdown > summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    box-sizing: border-box;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-dropdown-menu,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .sort-dropdown-menu {
    right: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort .sort-dropdown > summary span,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-stores > summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 4px 10px;
    box-sizing: border-box;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price h3 {
    min-width: 0;
    white-space: nowrap;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-filter {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 50px;
    margin: 0;
    box-sizing: border-box;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-manual-field {
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-manual-field input {
    width: 6ch;
    min-width: 0;
    max-width: 6ch;
    min-height: 44px;
    box-sizing: border-box;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-dropdown-menu .filter-option,
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .sort-dropdown-menu .sort-filter-option {
    min-height: 50px;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) :focus-visible {
    outline: 3px solid rgba(7, 148, 71, 0.3);
    outline-offset: 2px;
  }
}

@media (max-width: 519px) {
  body.test-page.test-catalog-list-mode .catalog-filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "title manual"
      "range range";
    min-height: 104px;
    padding: 7px 10px;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-stores {
    grid-column: 1;
    grid-row: 1;
  }

  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort {
    grid-column: 1;
    grid-row: 2;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price h3 {
    grid-area: title;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-filter {
    grid-area: range;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-manual-field {
    grid-area: manual;
  }
}

/* Stage 3: explicit catalog pagination; product-card visuals remain unchanged. */
body.test-page.test-catalog-list-mode .product-grid > .product-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 14px 0 2px;
}

body.test-page.test-catalog-list-mode .product-load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  min-height: 50px;
  padding: 11px 24px;
  border: 1px solid #079447;
  border-radius: 12px;
  color: #ffffff;
  background: #079447;
  font: 800 14px/1.25 Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.test-page.test-catalog-list-mode .product-load-more-button:hover {
  border-color: #057a39;
  background: #057a39;
}

body.test-page.test-catalog-list-mode .product-load-more-button:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.3);
  outline-offset: 3px;
}

body.test-page.test-catalog-list-mode .product-load-more-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* Controlled catalog auto-load: a one-pixel sentinel replaces the visible pagination button. */
body.test-page.test-catalog-list-mode .product-grid > .product-load-more.is-auto-load {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 1px;
  min-height: 1px;
  padding: 0;
  pointer-events: none;
}

body.test-page.test-catalog-list-mode .product-load-more.is-auto-load .product-load-sentinel-marker {
  display: block;
  width: 100%;
  height: 1px;
}

body.test-page.test-catalog-list-mode .product-load-more.is-auto-load .product-load-more-button[hidden] {
  display: none;
}

/* Collection routes open directly on their curated product list. */
body.test-page.catalog-collection-mode #catalogNav {
  display: none;
}

body.test-page.catalog-collection-mode .catalog-panel > .panel-head {
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 12px;
  padding: 0 2px;
}

body.test-page.catalog-collection-mode .catalog-panel > .panel-head .eyebrow {
  margin: 0 0 4px;
  color: #6f7b73;
  font-size: 12px;
  line-height: 1.3;
}

body.test-page.catalog-collection-mode .catalog-panel > .panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

body.test-page.catalog-collection-mode .catalog-panel {
  scroll-margin-top: 76px;
}

@media (max-width: 760px) {
  body.test-page.catalog-collection-mode .catalog-panel > .panel-head h2 {
    font-size: 20px;
  }
}

.test-page .product-load-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Search mode keeps the real search and result controls, omitting unrelated promo/category blocks on mobile. */
@media (max-width: 860px) {
  body.test-page.catalog-search-results-mode .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.test-page.catalog-search-results-mode .hero-copy {
    width: 100%;
    max-width: none;
  }

  body.test-page.catalog-search-results-mode .hero-copy > .eyebrow,
  body.test-page.catalog-search-results-mode .hero-copy > h1,
  body.test-page.catalog-search-results-mode .hero-copy > .lead,
  body.test-page.catalog-search-results-mode .hero-visual,
  body.test-page.catalog-search-results-mode .dashboard,
  body.test-page.catalog-search-results-mode #catalogNav {
    display: none;
  }

  body.test-page.catalog-search-results-mode .workspace {
    margin-top: 12px;
  }
}

/* Stage 4: component-scoped hit areas; visual icon sizes stay unchanged. */
.hero .main-search-clear {
  top: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  line-height: 0;
}

.hero .main-search-clear.visible,
.catalog-search-clear.visible,
.side-search-clear.visible {
  display: inline-flex;
}

.hero .main-search-clear > span,
.catalog-search-clear > span,
.side-search-clear > span {
  display: block;
  color: currentColor;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.catalog-search-clear,
.side-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 0;
}

/* Search clear actions use the same surface and interaction treatment as the watch-dialog close control. */
.hero .main-search-clear,
.catalog-search-clear,
.side-search-clear {
  border: 1px solid #dfe6e2;
  border-radius: 999px;
  color: #68747e;
  background: #fff;
}

/* The clear control is intentionally smaller than the search field while retaining a usable hit target. */
.hero .main-search-clear {
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
}

.catalog-search-clear,
.side-search-clear {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
}

.hero .main-search-clear:hover,
.hero .main-search-clear:focus-visible,
.catalog-search-clear:hover,
.catalog-search-clear:focus-visible,
.side-search-clear:hover,
.side-search-clear:focus-visible {
  border-color: rgba(7, 148, 71, 0.35);
  color: #079447;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 148, 71, 0.12);
}

@media (max-width: 860px) {
  .hero .main-search-clear {
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
  }
}

body.test-page .catalog-filter-panel #priceRangeFilter,
body.test-page .catalog-filter-panel #priceManualFilter {
  min-height: 36px;
  box-sizing: border-box;
}

body.test-page .catalog-filter-panel #priceRangeFilter {
  height: 36px;
}

.test-page .product-card .favorite-button,
.test-page .product-card .price-alert-button,
.test-page .product-card .shopping-list-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.test-page .product-card .favorite-button:focus-visible,
.test-page .product-card .price-alert-button:focus-visible,
.test-page .product-card .shopping-list-button:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.3) !important;
  outline-offset: 2px;
}

.test-page .product-card .more-stores {
  min-height: 40px !important;
}

.category-strip .category-toggle {
  min-width: 36px;
}

.footer-social {
  width: 40px;
  height: 40px;
}

.footer-store-button {
  min-height: 44px;
}

#authClose,
.cart-close-inline {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
}

@media (min-width: 1321px) {
  body .cart-fab-anchor,
  body .cart-fab-anchor.is-catalog-bound,
  body.cart-open .cart-fab-anchor,
  body.cart-closing .cart-fab-anchor {
    right: max(12px, calc((100vw - 1440px) / 2 - 4px)) !important;
  }
}

@media (max-width: 860px) {
  .hero .search-shell,
  .hero .search-box,
  .hero .search-shell #searchInput,
  .hero .search-shell #clearSearch,
  .primary-button.site-search-button {
    min-height: 50px;
    box-sizing: border-box;
  }

  .hero .search-shell #searchInput {
    height: 50px;
    padding-right: 56px;
  }

  .hero .main-search-clear {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .test-page .product-card .favorite-button,
  .test-page .product-card .price-alert-button,
  .test-page .product-card .shopping-list-button {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .test-page .product-card .more-stores {
    min-height: 50px !important;
  }

  .category-strip .category-toggle {
    min-width: 45px;
  }

  body.test-page .catalog-filter-panel #priceRangeFilter,
  body.test-page .catalog-filter-panel #priceManualFilter {
    min-height: 45px;
    box-sizing: border-box;
  }

  body.test-page .catalog-filter-panel #priceManualFilter {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
  }

  body.test-page .catalog-filter-panel #priceRangeFilter {
    height: 45px;
  }

  .test-page .test-section-more,
  .site-footer .footer-links a,
  .site-footer .footer-bottom-links a {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .site-footer .footer-social {
    width: 50px;
    height: 50px;
  }

  .site-footer .footer-store-button {
    min-height: 50px;
  }

  #authClose,
  .cart-close-inline {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .auth-modal .auth-submit,
  .auth-modal .auth-providers button,
  body .basket-section .basket-footer-action {
    min-height: 50px;
  }

  body .basket-section .basket-footer-action {
    height: 50px !important;
  }
}

/* Catalog top controls: keep Stage 4 hit areas inside one shared visual height. */
:is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) {
  --catalog-top-control-height: 42px;
}

:is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-stores > summary,
:is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-price,
:is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) .filter-group-sort .sort-dropdown > summary {
  height: var(--catalog-top-control-height);
  min-height: var(--catalog-top-control-height);
  max-height: var(--catalog-top-control-height);
  box-sizing: border-box;
}

body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price {
  padding-block: 0;
}

body.test-page.test-catalog-list-mode .catalog-filter-panel #priceRangeFilter {
  height: 100%;
  min-height: 32px;
  max-height: 100%;
}

body.test-page.test-catalog-list-mode .catalog-filter-panel .price-manual-field {
  height: 100%;
  min-height: 32px;
  padding-block: 0;
}

body.test-page.test-catalog-list-mode .catalog-filter-panel #priceManualFilter {
  height: 36px;
  min-height: 36px;
  max-height: none;
}

body.test-page.test-catalog-list-mode .catalog-filter-panel #priceManualFilter:focus-visible {
  outline: 0;
  box-shadow: none;
}

@media (max-width: 860px) {
  :is(body.test-page.test-catalog-list-mode .catalog-filter-panel, body.recipes-page-document .recipes-sort-control) {
    --catalog-top-control-height: 50px;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel #priceRangeFilter,
  body.test-page.test-catalog-list-mode .catalog-filter-panel #priceManualFilter {
    height: 45px;
    min-height: 45px;
    max-height: 45px;
  }
}

@media (max-width: 519px) {
  body.test-page.test-catalog-list-mode .catalog-filter-panel .filter-group-price {
    height: auto;
    min-height: 104px;
    max-height: none;
    padding-block: 7px;
  }

  body.test-page.test-catalog-list-mode .catalog-filter-panel .price-manual-field {
    height: auto;
    min-height: 50px;
  }
}

/* Stage 4: populated-cart controls keep compact glyphs with complete hit areas. */
body .basket-section .basket-row-check,
body .basket-section .basket-summary-info {
  width: 40px !important;
  min-width: 40px;
  height: 40px !important;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  font-size: 0;
  line-height: 1;
}

body .basket-section .basket-row-check::before,
body .basket-section .basket-summary-info::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

body .basket-section .basket-row-check::before {
  content: "✓";
  border: 1px solid #14a65e;
  border-radius: 4px;
  color: #fff;
  background: #14a65e;
  font-weight: 900;
}

body .basket-section .basket-summary-info {
  left: auto;
  right: 0;
  bottom: 0;
  cursor: default;
}

body .basket-section .basket-summary-info::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: center calc(50% - 3px) / 12.15px 12.15px no-repeat url("assets/basket/saving-info-icon.webp?v=a753492f81e24deeaf54a6dd899babffd6c9e1a982b4fec8387e2532d398fd1f");
  transition: background-color 0.14s ease, transform 0.14s ease, filter 0.14s ease, opacity 0.14s ease;
}

body .basket-section .basket-summary-info::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: center calc(50% - 3px) / 12.15px 12.15px no-repeat url("assets/basket/saving-info-icon.webp?v=a753492f81e24deeaf54a6dd899babffd6c9e1a982b4fec8387e2532d398fd1f");
  -webkit-mask-image: radial-gradient(circle, transparent 0 42%, #000 43% 100%);
  mask-image: radial-gradient(circle, transparent 0 42%, #000 43% 100%);
  opacity: 0;
  transition: opacity 0.14s ease, filter 0.14s ease;
}

body .basket-section .basket-summary-info:hover::before,
body .basket-section .basket-summary-info[aria-expanded="true"]::before {
  background-color: transparent;
  transform: none;
  opacity: 1;
  filter: none;
}

body .basket-section .basket-summary-info:hover::after,
body .basket-section .basket-summary-info[aria-expanded="true"]::after {
  opacity: 0.55;
  filter: brightness(0) saturate(100%) invert(42%) sepia(91%) saturate(642%) hue-rotate(94deg) brightness(88%) contrast(96%) drop-shadow(0 0 2px rgba(7, 148, 71, 0.09));
}

body .basket-section .cart-selection-hint__reset,
body .basket-section .basket-approved-secondary button,
body .basket-section .basket-row-remove {
  min-width: 40px;
  min-height: 40px;
}

body .basket-section .basket-approved-secondary button {
  display: inline-grid;
  place-items: center;
}

body .basket-section .basket-row-qty {
  width: 80px !important;
  height: 40px !important;
  min-height: 40px;
}

body .basket-section .basket-row-qty .qty-button {
  width: 32px !important;
  min-width: 32px;
  height: 40px !important;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

body .basket-section .basket-row-check:focus-visible,
body .basket-section .basket-row-qty .qty-button:focus-visible,
body .basket-section .basket-row-remove:focus-visible,
body .basket-section .basket-approved-secondary button:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.3);
  outline-offset: 2px;
}

body .basket-section .basket-summary-info:focus-visible {
  outline: 2px solid rgba(7, 148, 71, 0.28);
  outline-offset: 1px;
}

body .basket-section .basket-summary-info:focus-visible[aria-expanded="true"] {
  outline: 0;
}

/* Tooltip for the active summary's saving information control. */
body .basket-section .basket-saving-tooltip {
  position: absolute;
  z-index: 1400;
  width: 304px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  padding: 14px 16px;
  border: 2px solid #e4e9ef;
  border-radius: 12px;
  color: #172033;
  --basket-saving-tooltip-arrow-bg: #ffffff;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 140ms;
}

body .basket-section .basket-saving-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 0s;
}

body .basket-section .basket-saving-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: var(--basket-saving-tooltip-arrow-x, 50%);
  width: 10px;
  height: 10px;
  border-top: 1px solid #e4e9ef;
  border-left: 1px solid #e4e9ef;
  background: var(--basket-saving-tooltip-arrow-bg);
  transform: translateX(-50%) rotate(45deg);
}

body .basket-section .basket-saving-tooltip.is-above::before {
  --basket-saving-tooltip-arrow-bg: #ffffff;
  top: auto;
  bottom: -6px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #e4e9ef;
  border-bottom: 1px solid #e4e9ef;
}

body .basket-section .basket-saving-tooltip__title {
  display: block;
  margin: 0 0 7px;
  color: #172033;
  font-size: 14px;
  line-height: 18px;
  font-weight: 750;
}

body .basket-section .basket-saving-tooltip__text,
body .basket-section .basket-saving-tooltip__note {
  margin: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

body .basket-section .basket-saving-tooltip__text {
  color: #3d4854;
  font-size: 13px;
  line-height: 18px;
}

body .basket-section .basket-saving-tooltip__note {
  margin-top: 8px;
  color: #67737d;
  font-size: 12px;
  line-height: 16px;
}

@media (max-width: 796px) {
  body .basket-section .basket-saving-tooltip {
    width: min(304px, calc(100% - 24px));
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .basket-section .basket-summary-info::before,
  body .basket-section .basket-summary-info::after,
  body .basket-section .basket-saving-tooltip {
    transition: none;
  }
}

@media (min-width: 797px) {
  body .basket-section .basket-row-qty strong {
    min-width: 16px;
  }

  body .basket-section .basket-price-row > .basket-row-qty {
    justify-self: start;
  }

  body .basket-section .basket-price-head > span:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    justify-self: start;
  }

  body .basket-section .basket-price-head {
    grid-template-columns: minmax(280px, 1fr) 85px repeat(3, 91px) 40px !important;
  }

  body .basket-section .basket-price-row {
    grid-template-columns: 40px 40px minmax(200px, 1fr) 85px repeat(3, 91px) 40px !important;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-row-check,
  body .basket-section .basket-summary-info,
  body .basket-section .cart-selection-hint__reset,
body .basket-section .basket-approved-secondary button,
  body .basket-section .basket-row-remove {
    width: 50px !important;
    min-width: 50px;
    height: 50px !important;
    min-height: 50px;
  }

  body .basket-section .basket-row-qty {
    width: 100px !important;
    height: 50px !important;
    min-height: 50px;
  }

  body .basket-section .basket-row-qty .qty-button {
    width: 40px !important;
    min-width: 40px;
    height: 50px !important;
    min-height: 50px;
  }

  body .basket-section .basket-price-head > span:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    justify-self: start;
  }

  body .basket-section .basket-approved-tabs {
    height: 51px !important;
    flex-basis: 51px !important;
  }

  body .basket-section .basket-approved-tab,
  body .basket-section .basket-approved-tabs > button {
    min-height: 49px;
  }

  body .basket-section .basket-price-head,
  body .basket-section .basket-price-rows {
    width: 811px !important;
    min-width: 811px !important;
  }

  body .basket-section .basket-price-head {
    grid-template-columns: 246px 105px repeat(3, 135px) 40px !important;
  }

  body .basket-section .basket-price-row {
    grid-template-columns: 50px 42px 154px 105px repeat(3, 135px) 40px !important;
  }
}

/* Stage 5: shared visual tokens, scoped to established components. */
body,
.hero,
.site-footer,
.basket-section {
  font-family: var(--font-family-base);
}

.search-shell {
  border-color: var(--border-subtle);
  border-radius: var(--radius-search);
  box-shadow: var(--shadow-floating);
}

.test-page .product-card {
  border-color: var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.test-page .product-title,
.test-page [data-product-load-more],
.basket-section button {
  font-family: var(--font-family-base);
}

.test-page [data-product-load-more] {
  padding-right: var(--space-6);
  padding-left: var(--space-6);
  border-radius: var(--radius-control);
  font-size: var(--text-md);
  font-weight: var(--font-weight-strong);
}

.test-page :where(button, a, summary, input, select):focus-visible,
.basket-section button:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.test-page :where(button, input, select):disabled,
.basket-section button:disabled {
  opacity: 0.58;
}

@media (max-width: 860px) {
  .test-page .product-card {
    border-radius: var(--radius-card-compact);
  }
}

/* Release regression: preserve readable store names in the compact four-column desktop range. */
@media (min-width: 901px) and (max-width: 1279px) {
  .test-page .catalog-panel .product-grid .card-store-row,
  .test-page .catalog-panel .product-grid .card-store-row.is-best,
  .test-page .catalog-panel .product-grid .card-store-row.best-store {
    column-gap: 4px !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
  }
}

/* Keep the expanded hit area while restoring the category arrow to its original inset. */
.catalog-panel .category-list.category-strip .category-parent-row {
  --category-toggle-hit-width: 36px;
  grid-template-columns: minmax(0, 1fr) var(--category-toggle-hit-width);
}

.catalog-panel .category-list.category-strip .category-toggle {
  position: relative;
  width: var(--category-toggle-hit-width);
  min-width: var(--category-toggle-hit-width);
}

.catalog-panel .category-list.category-strip .category-toggle::after {
  position: absolute;
  top: 0;
  right: 9.5px;
  bottom: 0;
  margin-block: auto;
}

@media (max-width: 860px) {
  .catalog-panel .category-list.category-strip .category-parent-row {
    --category-toggle-hit-width: 45px;
  }
}

/* Basket automatic-calculation store filter. */
body .basket-section .basket-networks {
  position: relative;
}

body .basket-section .basket-networks.is-filter-open {
  z-index: 30;
}

body .basket-section .basket-network-title {
  position: relative;
  overflow: visible;
}

body .basket-section .basket-store-filter {
  position: relative;
  z-index: 31;
  flex: 0 1 auto;
  min-width: 0;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body .basket-section .basket-store-filter-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #dfe6e2;
  border-radius: 9px;
  color: #52606b;
  background: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

body .basket-section .basket-store-filter-trigger::before {
  content: "";
  position: absolute;
  inset: -7px 0;
}

body .basket-section .basket-store-filter-trigger:hover,
body .basket-section .basket-store-filter-trigger[aria-expanded="true"] {
  border-color: rgba(7, 148, 71, 0.42);
  color: #079447;
  background: #f7fbf9;
}

body .basket-section .basket-store-filter-icon,
body .basket-section .basket-store-filter-chevron {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .basket-section .basket-store-filter-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

body .basket-section .basket-store-filter-chevron {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: rotate 160ms ease;
}

body .basket-section .basket-store-filter.is-open .basket-store-filter-chevron {
  rotate: 180deg;
}

body .basket-section .basket-store-filter-label-short {
  display: none;
}

body .basket-section .basket-store-filter-panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 40;
  width: min(292px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid #dfe6e2;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}

body .basket-section .basket-store-filter-panel[hidden] {
  display: none;
}

body .basket-section .basket-store-filter-heading {
  display: block;
  margin: 0 8px 9px;
  color: #121827;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

body .basket-section .basket-store-filter-complete {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 4px;
  padding: 4px 6px;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
  cursor: pointer;
}

body .basket-section .basket-store-filter-complete:not(.is-disabled):hover {
  border-color: #e4e9ef;
  background: #ffffff;
}

body .basket-section .basket-store-filter-complete:not(.is-disabled):has(input:focus-visible),
body .basket-section .basket-store-filter-complete.is-active {
  border-color: rgba(18, 168, 90, 0.34);
  background: #fbfffc;
}

body .basket-section .basket-store-filter-complete.is-disabled {
  border-color: #e4e9ef;
  background: #f7f8f8;
  opacity: 0.64;
  cursor: not-allowed;
}

body .basket-section .basket-store-filter-complete:has(input:focus-visible) {
  outline: 0;
}

body .basket-section .basket-store-filter-complete-label {
  min-width: 0;
  color: #263240;
  font-size: 11px;
  line-height: 14px;
  font-weight: 800;
}

body .basket-section .basket-store-filter-complete-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #087c3f;
  background: #def4e5;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body .basket-section .basket-store-filter-list {
  max-height: min(270px, calc(100dvh - 330px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body .basket-section .basket-store-filter-row {
  position: relative;
  display: grid;
  grid-template-columns: 17px 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 3px 6px;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
}

body .basket-section .basket-store-filter-row:hover {
  background: #f5faf7;
}

body .basket-section .basket-store-filter-row.is-complete-filtered {
  opacity: 0.52;
  cursor: not-allowed;
}

body .basket-section .basket-store-filter-row.is-complete-filtered:hover {
  background: transparent;
}

body .basket-section .basket-store-filter-row:has(input:focus-visible) {
  outline: 0;
  background: #f5faf7;
}

body .basket-section .basket-store-filter-row input,
body .basket-section .basket-store-filter-complete input {
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #c8d1cb;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  box-shadow: none;
  cursor: inherit;
}

body .basket-section .basket-store-filter-row input:checked,
body .basket-section .basket-store-filter-complete input:checked {
  border-color: #bde5c9;
  background-color: #def4e5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 6.1 2.4 2.4L10 3.1' fill='none' stroke='%23087c3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body .basket-section .basket-store-filter-row input:not(:checked):active,
body .basket-section .basket-store-filter-complete input:not(:checked):active {
  border-color: #c8d1cb;
  background-color: #fff;
}

body .basket-section .basket-store-filter-row input:checked:active,
body .basket-section .basket-store-filter-complete input:checked:active {
  border-color: #bde5c9;
  background-color: #def4e5;
}

body .basket-section .basket-store-filter-row input:focus-visible,
body .basket-section .basket-store-filter-complete input:focus-visible {
  outline: 2px solid rgba(7, 148, 71, 0.32);
  outline-offset: 2px;
}

body .basket-section .basket-store-filter-logo {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

body .basket-section .basket-store-filter-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .basket-section .basket-store-filter-message {
  margin: 7px 4px 0;
  color: #8a6338;
  font-size: 11px;
  line-height: 15px;
}

body .basket-section .basket-store-filter-message[hidden] {
  display: none;
}

body .basket-section .basket-store-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #edf0ee;
}

body .basket-section .basket-store-filter-actions button {
  width: 100%;
  justify-self: stretch;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfe6e2;
  border-radius: 9px;
  color: #52606b;
  background: #fff;
  font-size: 12px;
  line-height: 15px;
  font-weight: 800;
}

body .basket-section .basket-store-filter-actions button:not(:disabled):hover {
  border-color: rgba(7, 148, 71, 0.45);
  color: #079447;
  background: #f3faf6;
}

body .basket-section .basket-store-filter-actions button:disabled {
  color: #8a9590;
  background: #fff;
  cursor: default;
}

body .basket-section .basket-network-card.calculation-excluded {
  opacity: 0.64;
  background: #f7f8f7 !important;
  cursor: default;
}

body .basket-section .basket-network-card.calculation-excluded::after {
  content: none !important;
}

body .basket-section .basket-network-card.calculation-excluded .basket-network-difference.is-excluded {
  color: #68756e;
  font-weight: 600;
}

body .basket-section .basket-price-head > span.calculation-excluded,
body .basket-section .basket-price-cell.calculation-excluded {
  opacity: 0.64;
  background: #f7f8f7;
  cursor: default;
}

/* These cells are visible for comparison, but disabled for selection. */
body .basket-section .basket-price-cell:disabled {
  cursor: default;
}

body .basket-section .basket-price-cell.calculation-excluded:not(:disabled):hover {
  opacity: 0.82;
  background: #f2f6f3;
}

/* Keep the price baseline stable whether a cell has a status label or not. */
body .basket-section .basket-price-cell {
  display: grid;
  grid-template-rows: 15px 12px;
  align-content: center;
  justify-items: center;
  row-gap: 2px;
}

body .basket-section .basket-price-cell > b {
  grid-row: 1;
}

body .basket-section .basket-price-cell > small {
  grid-row: 2;
  min-height: 12px;
}

/* Keep the first line of a two-line excluded label on the shared status baseline. */
body .basket-section .basket-price-cell.calculation-excluded > small {
  height: 12px;
  min-height: 0;
  margin: 0;
  overflow: visible;
}

body .basket-section .basket-summary-coverage {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  color: #6f7c75;
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  text-align: center;
}

body .basket-section .basket-approved-summary > div {
  padding-bottom: 10px;
  box-sizing: border-box;
}

body .basket-section .basket-summary-saving--neutral strong {
  color: #111820 !important;
}

body .basket-section .basket-row-eligibility-status {
  color: #8a6338 !important;
  font-size: 10px !important;
  line-height: 11px !important;
  font-weight: 650;
}

@media (max-width: 520px) {
  body .basket-section .basket-store-filter-trigger {
    max-width: 214px;
    padding-right: 7px;
    padding-left: 7px;
  }

  body .basket-section .basket-store-filter-label-full {
    display: none;
  }

  body .basket-section .basket-store-filter-label-short {
    display: inline;
  }

  body .basket-section .basket-store-filter-panel {
    width: min(320px, calc(100vw - 30px));
    max-height: calc(100dvh - 176px);
  }

  body .basket-section .basket-store-filter-list {
    max-height: min(270px, calc(100dvh - 418px));
  }
}

@media (max-width: 360px) {
  body .basket-section .basket-store-filter-trigger {
    max-width: 184px;
    font-size: 10px;
  }

  body .basket-section .basket-store-filter-icon {
    margin-right: 4px;
  }

  body .basket-section .basket-store-filter-chevron {
    margin-left: 4px;
  }
}

/* Let the drawer's real bottom radius reveal the backdrop instead of a white underlay. */
body .basket-section {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .basket-section .basket-board {
  border-left: 0;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none;
}

@media (min-width: 797px) {
  body.cart-open .basket-section,
  body.cart-closing .basket-section {
    right: 0 !important;
  }
}

/* Product rows: the remove action replaces the non-interactive green check. */
body .basket-section .basket-price-row > .basket-row-remove {
  grid-column: 1;
  justify-self: center;
  color: #8a93a3;
  background: transparent;
}

body .basket-section .basket-price-row > .basket-row-remove:hover {
  color: #d9363e;
  background: #fff1f0;
}

@media (min-width: 797px) {
  body .basket-section .basket-price-head {
    grid-template-columns:
      minmax(280px, 1fr)
      85px
      repeat(var(--basket-store-count), 91px) !important;
  }

  body .basket-section .basket-price-row {
    grid-template-columns:
      40px
      40px
      minmax(200px, 1fr)
      85px
      repeat(var(--basket-store-count), 91px) !important;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-price-row > .basket-row-qty {
    grid-column: auto;
    justify-self: start;
  }

  body .basket-section .basket-price-head,
  body .basket-section .basket-price-rows {
    width: var(--basket-mobile-table-width) !important;
    min-width: var(--basket-mobile-table-width) !important;
  }

  body .basket-section .basket-price-head {
    grid-template-columns:
      246px
      105px
      repeat(var(--basket-store-count), 135px) !important;
  }

  body .basket-section .basket-price-row {
    grid-template-columns:
      50px
      42px
      154px
      105px
      repeat(var(--basket-store-count), 135px) !important;
  }
}

/* Row removal keeps the large touch target while the cross stays compact. */
body .basket-section .basket-price-row > .basket-row-remove {
  grid-column: 1;
  justify-self: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #8a93a3;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

body .basket-section .basket-price-row > .basket-row-remove:hover {
  color: #8a6338;
  background: transparent;
}

/* The remove control sits in the dedicated left gutter before row dividers. */
body .basket-section .basket-price-row {
  position: relative;
  border-bottom: 1px solid #e3e8e5;
}

body .basket-section .basket-price-row > .basket-row-remove {
  grid-column: 1;
  justify-self: center;
}

/* Fixed action rail: the table content keeps its existing coordinates. */
body .basket-section .basket-board {
  --basket-action-rail-width: 30px;
  --basket-content-right-inset: var(--basket-action-rail-width);
  padding-inline: 0 !important;
  scrollbar-gutter: auto;
}

body .basket-section .basket-drawer-head,
body .basket-section .basket-approved-summary,
body .basket-section .cart-selection-hint,
body .basket-section .basket-networks,
body .basket-section .basket-approved-tabs,
body .basket-section .basket-approved-footer {
  width: auto !important;
  margin-left: var(--basket-action-rail-width) !important;
  margin-right: var(--basket-content-right-inset) !important;
}

body .basket-section .basket-price-table {
  display: flex !important;
  min-height: 0;
  min-width: 0;
  padding-right: var(--basket-content-right-inset);
  overflow: hidden !important;
}

/* The divider above the price headings matches the divider beneath them. */
body .basket-section .basket-approved-tabs {
  border-bottom-color: #dfe5e1;
}

body .basket-section .basket-price-table {
  border-top: 0;
}

body .basket-section .basket-price-head {
  border-bottom-color: #dfe5e1;
}

body .basket-section .basket-price-remove-rail {
  flex: 0 0 var(--basket-action-rail-width);
  min-width: var(--basket-action-rail-width);
  overflow: hidden;
  background: #fff;
}

body .basket-section .basket-price-remove-rail-head {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 31px;
  background: #fff;
}

body .basket-section .basket-price-remove-rail-rows {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

body .basket-section .basket-price-remove-rail .basket-row-remove {
  display: grid;
  place-items: center;
  width: 40px !important;
  min-width: 40px !important;
  min-height: 62px;
  /* Keeps the 40px hit target while placing the glyph 8px farther right. */
  padding: 0 2px 0 8px;
  border: 0;
  color: #8a93a3;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

body .basket-section .basket-price-remove-rail .basket-row-remove:hover {
  color: #8a6338;
  background: transparent;
}

body .basket-section .basket-price-table-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: auto;
}

body .basket-section .basket-approved-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .basket-section .basket-approved-tabs > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

body .basket-section .basket-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #079447;
  background: #e8f6ec;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body .basket-section .basket-approved-tabs > button.active .basket-tab-count {
  color: #079447;
  background: #e8f6ec;
}

@media (max-width: 796px) {
  body .basket-section .basket-approved-tabs > button {
    gap: 4px;
    font-size: 11px;
  }

  body .basket-section .basket-tab-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-board {
    --basket-action-rail-width: 16px;
    padding-inline: 0 !important;
  }

  body .basket-section .basket-price-remove-rail .basket-row-remove {
    min-height: 65px;
    padding: 0 16px 0 8px;
  }
}

/* Legacy bulk-selection controls are retained only for stored-state compatibility. */
body .basket-section .basket-product-select {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 100%;
  min-height: 32px;
  cursor: pointer;
}

body .basket-section .basket-product-select > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

body .basket-section .basket-selection-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 17.6px;
  height: 17.6px;
  aspect-ratio: 1;
  flex: 0 0 17.6px;
  box-sizing: border-box;
  border: 1px solid #cbd5d0;
  border-radius: 5px;
  color: transparent;
  background: #fff;
}

body .basket-section .basket-selection-box svg {
  display: block;
  width: 13.2px;
  height: 13.2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .basket-section .basket-product-select:hover .basket-selection-box {
  border-color: #079447;
}

body .basket-section .basket-product-select > input:checked + .basket-selection-box,
body .basket-section .basket-product-select > input:indeterminate + .basket-selection-box {
  border-color: #079447;
  color: #fff;
  background: #079447;
}

body .basket-section .basket-product-select > input:indeterminate + .basket-selection-box svg {
  display: none;
}

body .basket-section .basket-product-select > input:indeterminate + .basket-selection-box::after {
  content: "";
  position: absolute;
  left: 4.4px;
  right: 4.4px;
  top: 7.8px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

body .basket-section .basket-product-select > input:focus-visible + .basket-selection-box {
  outline: 3px solid rgba(7, 148, 71, 0.3);
  outline-offset: 2px;
}

body .basket-section .basket-row-select {
  align-self: stretch;
  justify-self: stretch;
}

body .basket-section [data-basket-clear] {
  border-radius: 8px;
  opacity: 1;
}

body .basket-section [data-basket-clear].is-selection-active {
  color: #079447;
  background: transparent;
  font-weight: 650;
}

body .basket-section [data-basket-clear].is-undo-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #079447;
  background: transparent;
  font-weight: 650;
}

body .basket-section .basket-clear-countdown {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

body .basket-section [data-basket-clear]:disabled {
  color: #8a9590;
  background: transparent;
  cursor: default;
}

/* Footer utilities keep their own established structure and compact geometry. */
body .basket-section .basket-approved-secondary .basket-footer-utility-action {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfe6e2;
  border-radius: 9px;
  box-shadow: none;
  color: #52606b;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body .basket-section .basket-approved-footer .basket-footer-save-action {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfe6e2;
  border-radius: 9px;
  box-shadow: none;
  color: #52606b;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

/* The clear/undo control keeps the width of its regular "Очистить все" state. */
body .basket-section .basket-approved-secondary .basket-footer-utility-action[data-basket-clear] {
  width: 125px;
  min-width: 125px;
  justify-content: flex-start;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.82;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action::before {
  content: none;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action:not(:disabled):hover img {
  opacity: 1;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action:not(:disabled):hover,
body .basket-section .basket-approved-footer .basket-footer-save-action:not(:disabled):hover {
  border-color: rgba(7, 148, 71, .45);
  color: #079447;
  background: #f3faf6;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action:active,
body .basket-section .basket-approved-footer .basket-footer-save-action:active {
  border-color: #079447;
  background: #edf8f2;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action:disabled img {
  opacity: 0.42;
}

body .basket-section .basket-approved-secondary .basket-footer-utility-action.is-undo-active {
  gap: 5px;
  padding: 0;
  border: 0;
  color: #079447;
  background: transparent;
  font-weight: 650;
}

body .basket-section .basket-approved-footer .basket-footer-save-action .basket-footer-save-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

body .basket-section .basket-approved-footer .basket-footer-save-action.is-saved {
  color: #079447;
  border-color: rgba(7, 148, 71, .45);
  background: #f3faf6;
}

@media (max-width: 796px) {
  body .basket-section .basket-approved-secondary .basket-footer-utility-action {
    width: 40px !important;
    min-width: 40px;
    height: 40px !important;
    min-height: 40px;
    padding: 0;
    font-size: 0;
  }

  body .basket-section .basket-approved-secondary .basket-footer-utility-action[data-basket-clear] {
    width: 125px !important;
    min-width: 125px;
    padding: 0 10px;
    font-size: 12px;
  }

  body .basket-section .basket-approved-secondary .basket-footer-utility-action img {
    width: 18px;
    height: 18px;
  }

  body .basket-section .basket-approved-footer .basket-footer-save-action {
    width: auto;
    min-width: 134px;
    min-height: 40px;
    height: 40px !important;
    padding: 0 8px;
    font-size: 12px;
  }

  body .basket-section .basket-product-select {
    width: 50px;
    min-height: 40px;
  }

  body .basket-section .basket-approved-secondary [data-basket-clear].is-undo-active {
    width: auto !important;
    min-width: 0;
    font-size: 13px;
  }

  body .basket-section .basket-approved-secondary [data-basket-clear].is-undo-active::before {
    content: none;
  }
}

@media (max-width: 430px) {
  body .basket-section .basket-approved-footer {
    gap: 8px;
  }

  body .basket-section .basket-approved-secondary {
    gap: 4px;
  }

  body .basket-section .basket-approved-secondary .basket-footer-utility-action[data-basket-clear] {
    width: 104px !important;
    min-width: 104px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* Keep the final "ы" in "Морепродукты" on the same line without changing typography. */
.catalog-panel .category-list.category-strip
  .parent-category[data-category="Морепродукты"]
  .category-name {
  gap: 7px;
}

/* Secondary shopping-list tabs show only their own content. */
body .basket-section .basket-board.is-secondary-tab .basket-approved-summary,
body .basket-section .basket-board.is-secondary-tab .cart-selection-hint,
body .basket-section .basket-board.is-secondary-tab .basket-networks,
body .basket-section .basket-board.is-secondary-tab .basket-approved-footer {
  display: none;
}

/* Cart polish: compact header control, text-width tab indicator and usable remove rail. */
body .basket-section .basket-drawer-head .cart-close-inline {
  flex-basis: var(--control-height-compact);
  width: var(--control-height-compact) !important;
  min-width: var(--control-height-compact) !important;
  height: var(--control-height-compact) !important;
  min-height: var(--control-height-compact) !important;
  border: 0 !important;
  border-radius: var(--radius-control) !important;
  color: var(--muted) !important;
  background: transparent !important;
  font-size: var(--text-lg) !important;
}

body .basket-section .basket-drawer-head .cart-close-inline:hover {
  border-color: transparent !important;
  color: var(--brand-600) !important;
  background: #f3faf6 !important;
  box-shadow: none !important;
}

body .basket-section .basket-approved-tabs > button {
  font-size: var(--text-md);
  line-height: var(--line-tight);
}

body .basket-section .basket-approved-tabs > button.active::after {
  content: none;
}

body .basket-section .basket-tab-label {
  display: inline-flex;
  align-items: center;
}

body .basket-section .basket-tab-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
}

body .basket-section .basket-approved-tabs > button.active .basket-tab-label::after {
  content: none;
}

body .basket-section .basket-approved-tabs > button.active .basket-tab-content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand-600);
}

body .basket-section .basket-price-remove-rail {
  position: relative;
  z-index: 2;
  overflow: visible;
}

body .basket-section .basket-price-remove-rail .basket-row-remove {
  justify-self: start;
  width: 32px !important;
  min-width: 32px !important;
  min-height: 32px;
  padding: 0;
}

@media (max-width: 860px) {
  body .basket-section .basket-drawer-head .cart-close-inline {
    flex-basis: var(--control-height-compact);
    width: var(--control-height-compact) !important;
    min-width: var(--control-height-compact) !important;
    height: var(--control-height-compact) !important;
    min-height: var(--control-height-compact) !important;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-approved-tabs > button {
    font-size: var(--text-sm);
  }

  body .basket-section .basket-tab-content {
    gap: 4px;
  }

  body .basket-section .basket-price-remove-rail .basket-row-remove {
    min-height: 32px;
  }
}

/* Narrow mobile: keep each tab label intact and expose overflow by touch scrolling. */
@media (max-width: 340px) {
  body .basket-section .basket-approved-tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body .basket-section .basket-approved-tabs::-webkit-scrollbar {
    display: none;
  }

  body .basket-section .basket-approved-tabs > button {
    flex: 0 0 auto;
    padding-inline: var(--space-2);
    gap: var(--space-1);
  }
}

/* The 32px mobile remove target overlaps only the row spacer, never the viewport edge. */
@media (max-width: 796px) {
  body .basket-section .basket-price-remove-rail-rows {
    align-items: flex-start;
  }

  body .basket-section .basket-price-remove-rail .basket-row-remove {
    align-self: flex-start;
    justify-self: start;
    place-items: center start;
    width: 32px !important;
    min-width: 32px !important;
    margin-inline: 0 !important;
    padding-inline-start: var(--space-1);
    padding-inline-end: 0;
    box-sizing: border-box;
  }
}

/* The catalog's floating search keeps a neutral field edge while typing. */
.catalog-sticky-control .catalog-search:focus-within {
  border-color: #dfe6dc;
  box-shadow: none;
}

.catalog-sticky-control .catalog-search input:focus {
  outline: 0;
  box-shadow: none;
}

/* Desktop product cards: lower the more-prices label without resizing its price area. */
@media (min-width: 761px) {
  .catalog-panel .product-grid .product-card .card-store-section .more-stores,
  .test-page .test-home-section-grid .product-card .card-store-section .more-stores {
    bottom: 3px !important;
  }
}
/* Download-format picker stays local to the basket footer. */
body .basket-section .basket-download-control { position: relative; flex: 0 0 auto; }
body .basket-section .basket-download-control [data-basket-download] { gap: 6px; }
body .basket-section .basket-download-chevron { font-size: 13px; line-height: 1; transition: transform .18s ease; }
body .basket-section [data-basket-download][aria-expanded="true"] .basket-download-chevron { transform: rotate(180deg); }
body .basket-section .basket-download-popover { position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 0; width: 260px; padding: 6px; border: 1px solid #dfe6e2; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(16,24,40,.16); }
body .basket-section .basket-download-popover::before { content: "Скачать список"; display: block; padding: 8px 10px 6px; color: #101828; font-size: 13px; font-weight: 800; }
body .basket-section .basket-download-options { display: grid; gap: 2px; }
body .basket-section .basket-download-options > button { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; min-height: 56px; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; color: #52606b; background: transparent; text-align: left; }
body .basket-section .basket-download-options > button:hover, body .basket-section .basket-download-options > button:focus-visible { color: #079447; background: #f3faf6; outline: none; }
body .basket-section .basket-download-option-icon { width: 20px; height: 20px; color: #079447; }
body .basket-section .basket-download-options b, body .basket-section .basket-download-options small { display: block !important; }
body .basket-section .basket-download-options b { color: #26323a; font-size: 12px; line-height: 15px; }
body .basket-section .basket-download-options small { margin-top: 2px; color: #738079; font-size: 11px; line-height: 13px; }
body .basket-section .basket-download-spinner { width: 14px; height: 14px; border: 2px solid rgba(7,148,71,.25); border-top-color: #079447; border-radius: 50%; animation: basket-download-spin .7s linear infinite; }
body .basket-section .basket-download-toast { position: absolute; right: 24px; bottom: 74px; z-index: 50; max-width: min(300px, calc(100% - 48px)); padding: 10px 12px; border-radius: 8px; color: #fff; background: #26323a; box-shadow: 0 8px 20px rgba(16,24,40,.18); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
body .basket-section .basket-download-toast.is-visible { opacity: 1; transform: translateY(0); }
body .basket-section .basket-download-toast.is-error { background: #9a3b32; }
body .basket-section .basket-download-toast.has-action { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
body .basket-section .basket-download-toast.has-action button { flex: 0 0 auto; min-height: 30px; border: 0; border-radius: 6px; padding: 0 9px; color: #056f35; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
body .basket-section .basket-download-toast.has-action button:hover,
body .basket-section .basket-download-toast.has-action button:focus-visible { color: #034f26; background: #eef9f3; }
@keyframes basket-download-spin { to { transform: rotate(360deg); } }
@media (max-width: 796px) {
  body .basket-section .basket-download-popover { display: none; }
  body .basket-section .basket-download-sheet-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: end; background: rgba(16,24,40,.36); }
  body .basket-section .basket-download-sheet { width: 100%; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background-color: #fff; background-image: url("/assets/cart/share-result-background.png"); background-repeat: no-repeat; background-position: center; background-size: 100% 100%; box-shadow: 0 -12px 30px rgba(16,24,40,.14); }
  body .basket-section .basket-download-handle { display: block; width: 36px; height: 4px; margin: 3px auto 14px; border-radius: 999px; background: #d7dfda; }
  body .basket-section .basket-download-sheet h3 { margin: 0; color: #101828; font-size: 18px; line-height: 22px; }
  body .basket-section .basket-download-sheet > p { margin: 4px 0 12px; color: #738079; font-size: 13px; }
  body .basket-section .basket-download-options > button { min-height: 60px; }
  body .basket-section .basket-download-cancel { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #dfe6e2; border-radius: 9px; color: #52606b; background: #fff; font-size: 13px; font-weight: 800; }
  body .basket-section .basket-download-toast { right: 16px; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { body .basket-section .basket-download-spinner { animation: none; } }

/* Shared presentation for the existing download and share actions. */
body .basket-section .basket-download-control,
body .basket-section .basket-share-control { position: relative; flex: 0 0 auto; }
body .basket-section .basket-actions,
body .basket-section .basket-approved-secondary { position: relative; }
body .basket-section .basket-action-trigger.is-active,
body .basket-section [data-basket-download].is-active,
body .basket-section [data-basket-share].is-active { color: #079447; background: #f0faf3; border-color: #079447; }
body .basket-section .basket-action-popover { position: absolute; z-index: 100; bottom: 56px; left: 0; display: none; width: 280px; padding: 10px; border: 1px solid #e4e8e5; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(24,38,28,.14); }
body .basket-section .basket-share-popover { width: 300px; }
body .basket-section .basket-action-popover.is-open:not([hidden]) { display: block; animation: basketActionPopoverOpen 160ms ease-out; }
body .basket-section .basket-action-popover__title { margin: 0; padding: 5px 8px 9px; color: #121827; font-size: 14px; line-height: 1.35; font-weight: 800; }
body .basket-section .basket-action-menu { display: flex; flex-direction: column; gap: 2px; }
body .basket-section .basket-action-menu-item { display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 54px; padding: 10px; border: 0; border-radius: 10px; color: #121827; background: #fff; text-align: left; cursor: pointer; }
body .basket-section .basket-action-popover .basket-action-menu-item { display: flex; align-items: flex-start; justify-content: flex-start; place-items: initial; height: auto; font-size: 14px; }
body .basket-section .basket-action-menu-item:hover { background: #f5f8f6; }
body .basket-section .basket-action-menu-item:focus-visible { outline: 2px solid rgba(7,148,71,.32); outline-offset: 1px; background: #f5f8f6; }
body .basket-section .basket-action-menu-item__icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; color: #079447; background: #eaf7ee; }
body .basket-section .basket-action-menu-item__icon svg { width: 20px; height: 20px; }
body .basket-section .basket-action-menu-item__icon img { display: block; width: 20px; height: 20px; object-fit: contain; }
body .basket-section .basket-action-menu-item__label { display: block; color: #121827; font-size: 14px; line-height: 1.3; font-weight: 700; }
body .basket-section .basket-action-menu-item__description { display: block !important; margin-top: 2px; color: #6f7785; font-size: 12px; line-height: 1.35; font-weight: 400; }
body .basket-section .basket-action-menu-item.is-compact { min-height: 48px; align-items: center; }
body .basket-section .basket-action-popover__divider { height: 1px; margin: 6px; background: #e4e8e5; }
body .basket-section .basket-action-popover .basket-download-options { display: contents; }
body .basket-section .basket-action-popover .basket-download-options > button { grid-template-columns: none; display: flex; min-height: 54px; padding: 10px; border-radius: 10px; }
body .basket-section .basket-action-popover .basket-download-option-icon { display: none; }
body .basket-section .basket-download-popover::before { display: none; }

/* Download formats keep neutral black icons without the share menu's green tile. */
body .basket-section [data-basket-download-format] .basket-action-menu-item__icon {
  color: #121827;
  background: transparent;
  border-radius: 0;
}

body .basket-section [data-basket-download-format]:hover .basket-action-menu-item__icon,
body .basket-section [data-basket-download-format]:focus-visible .basket-action-menu-item__icon {
  color: #121827;
  background: transparent;
}
@keyframes basketActionPopoverOpen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body .basket-section .basket-share-card-preview { position: absolute; right: 38px; bottom: 72px; z-index: 35; width: 300px; padding: 18px; border: 1px solid #dce7df; border-radius: 20px; background-color: #fff; background-image: url("/assets/cart/share-result-background.png"); background-repeat: no-repeat; background-position: center; background-size: 100% 100%; box-shadow: 0 18px 45px rgba(24,38,28,.14); }
body .basket-section .basket-share-card__logo { color: #079447; font-size: 19px; font-weight: 800; }
body .basket-section .basket-share-card__saving { margin: 16px 0 3px; color: #121827; font-size: 23px; line-height: 1.2; font-weight: 850; }
body .basket-section .basket-share-card__saving-value { color: #079447; }
body .basket-section .basket-share-card__meta { margin-bottom: 14px; color: #313944; font-size: 13px; }
body .basket-section .basket-share-card__summary { padding: 12px; border: 1px solid #e4e8e5; border-radius: 12px; background: rgba(255,255,255,.9); }
body .basket-section .basket-share-card__summary-row,
body .basket-section .basket-share-card__product { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
body .basket-section .basket-share-card__products { margin: 12px 0; }
body .basket-section .basket-share-card__product { padding: 7px 0; border-bottom: 1px solid #edf0ee; }
body .basket-section .basket-share-card__footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4e8e5; color: #6f7785; font-size: 12px; }
body .basket-section .basket-share-card__cta { width: 100%; height: 42px; margin-top: 12px; border: 0; border-radius: 10px; color: #fff; background: #079447; font-weight: 800; }
@media (max-width: 796px) {
  body .basket-section .basket-action-popover { display: none; }
  body .basket-section .basket-action-sheet-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: end; background: rgba(14,24,18,.38); }
  body .basket-section .basket-action-sheet { width: 100%; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background-color: #fff; background-image: url("/assets/cart/share-result-background.png"); background-repeat: no-repeat; background-position: center; background-size: 100% 100%; box-shadow: 0 -16px 40px rgba(0,0,0,.16); }
  body .basket-section .basket-action-sheet__handle { display: block; width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #c9cecb; }
  body .basket-section .basket-action-sheet__title { margin: 0; color: #121827; font-size: 20px; line-height: 1.25; font-weight: 800; }
  body .basket-section .basket-action-sheet__subtitle { margin: 4px 0 12px; color: #6f7785; font-size: 13px; }
  body .basket-section .basket-action-sheet .basket-action-menu-item { min-height: 58px; margin-bottom: 8px; border: 1px solid #e4e8e5; }
  body .basket-section .basket-download-sheet .basket-action-menu-item { min-height: 58px; margin-bottom: 8px; border: 1px solid #e4e8e5; }
  body .basket-section .basket-action-sheet__cancel { width: 100%; height: 48px; margin-top: 5px; border: 0; border-radius: 12px; color: #121827; background: #f1f3f2; font-weight: 800; cursor: pointer; }
  body .basket-section .basket-share-card-preview { right: 16px; bottom: 76px; width: min(300px, calc(100% - 32px)); }
}

/* Mobile drawer must follow the real visual viewport instead of desktop zoom compensation. */
@media (max-width: 796px) {
  body.cart-open,
  body.cart-closing {
    padding-right: 0 !important;
  }

  body.cart-open .topbar,
  body.cart-closing .topbar {
    right: 0 !important;
  }

  body.cart-open .basket-section,
  body.cart-closing .basket-section {
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    zoom: 1.11112 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  body .basket-section .basket-board {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    border-radius: 0 !important;
  }
}

/* Final product-table geometry: one action rail, no legacy spacer, narrower names. */
body .basket-section .basket-price-remove-rail {
  flex-basis: 32px;
  min-width: 32px;
}

body .basket-section .basket-price-remove-rail .basket-row-remove {
  width: 32px !important;
  min-width: 32px !important;
  min-height: 32px;
  padding: 0 !important;
  box-sizing: border-box;
}

body .basket-section .basket-row-remove-spacer {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

body .basket-section .basket-price-row {
  height: auto !important;
  min-height: 76px;
  grid-template-columns:
    0
    40px
    180px
    96px
    repeat(var(--basket-store-count), minmax(105px, 1fr)) !important;
}

body .basket-section .basket-price-head {
  grid-template-columns:
    220px
    96px
    repeat(var(--basket-store-count), minmax(105px, 1fr)) !important;
}

body .basket-section .basket-price-head > span:nth-child(2) {
  width: 96px;
  justify-self: stretch;
}

body .basket-section .basket-price-row .basket-row-main {
  align-self: center;
  padding: 6px 8px 6px 4px;
}

body .basket-section .basket-price-row .basket-row-main strong {
  display: block;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

@media (max-width: 796px) {
  body .basket-section .basket-price-remove-rail-head {
    height: 42px;
  }

  body .basket-section .basket-price-row {
    min-height: 82px;
    grid-template-columns:
      0
      42px
      96px
      110px
      repeat(var(--basket-store-count), minmax(135px, 1fr)) !important;
  }

  body .basket-section .basket-price-head {
    grid-template-columns:
      138px
      110px
      repeat(var(--basket-store-count), minmax(135px, 1fr)) !important;
  }

  body .basket-section .basket-price-head > span:nth-child(2) {
    width: 110px;
  }

  body .basket-section .basket-price-row .basket-row-main {
    padding-block: 6px;
  }
}

/* Restore the approved close control and the pre-table-adjustment price widths. */
body .basket-section .basket-drawer-head .cart-close-inline {
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #e4e9ef !important;
  border-radius: 999px !important;
  color: #68747e !important;
  background: #fff !important;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body .basket-section .basket-drawer-head .cart-close-inline:hover {
  border-color: rgba(7, 148, 71, 0.35) !important;
  color: #079447 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(7, 148, 71, 0.12) !important;
}

body .basket-section .basket-drawer-head .cart-close-inline:focus-visible {
  border-color: rgba(7, 148, 71, 0.35) !important;
  color: #079447 !important;
  background: #fff !important;
  outline: 2px solid #079447 !important;
  outline-offset: 2px !important;
}

@media (max-width: 860px) {
  body .basket-section .basket-drawer-head .cart-close-inline {
    flex-basis: 50px;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
  }
}

body .basket-section .basket-price-row {
  grid-template-columns:
    0
    40px
    180px
    96px
    repeat(var(--basket-store-count), 91px) !important;
}

body .basket-section .basket-price-head {
  grid-template-columns:
    220px
    96px
    repeat(var(--basket-store-count), 91px) !important;
}

body .basket-section .basket-price-remove-rail {
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

body .basket-section .basket-price-remove-rail::-webkit-scrollbar {
  display: none;
}

/* The scrollable canvas is exactly the sum of the rendered columns. */
@media (min-width: 797px) {
  body .basket-section .basket-price-head,
  body .basket-section .basket-price-rows,
  body .basket-section .basket-price-row {
    width: var(--basket-table-content-width) !important;
    min-width: var(--basket-table-content-width) !important;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-price-head,
  body .basket-section .basket-price-rows,
  body .basket-section .basket-price-row {
    width: var(--basket-mobile-table-width) !important;
    min-width: var(--basket-mobile-table-width) !important;
  }

  body .basket-section .basket-price-row {
    grid-template-columns:
      0
      42px
      96px
      110px
      repeat(var(--basket-store-count), 135px) !important;
  }

  body .basket-section .basket-price-head {
    grid-template-columns:
      138px
      110px
      repeat(var(--basket-store-count), 135px) !important;
  }
}

/* The drawer close action belongs to the tab strip, not to a separate header. */
body .basket-section .basket-approved-tabs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  column-gap: 12px;
  align-items: stretch;
  position: relative;
}

body .basket-section .basket-approved-tabs__scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
}

body .basket-section .basket-approved-tabs__scroll > [data-basket-tab] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  font-size: var(--text-md);
  line-height: var(--line-tight);
}

body .basket-section .basket-approved-tabs__scroll > [data-basket-tab].active .basket-tab-label::after {
  content: none;
}

body .basket-section .basket-approved-tabs__scroll > [data-basket-tab].active .basket-tab-content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand-600);
}

/* Keep the active indicator tied to the label, not to the stretched tab cell. */
body .basket-section .basket-approved-tabs__scroll > [data-basket-tab].active::after {
  content: none;
}

/* The tabs own the divider; the fixed close slot must not leave a line fragment. */
body .basket-section .basket-approved-tabs {
  border-bottom: 0 !important;
}

body .basket-section .basket-approved-tabs__scroll {
  border-bottom: 1px solid #dfe5e1;
}

body .basket-section .basket-approved-tabs .basket-tabs-close {
  border-bottom: 0 !important;
}

body .basket-section .basket-approved-tabs .basket-tabs-close {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: var(--radius-control) !important;
  color: #68747e !important;
  background: #fff !important;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1;
  box-shadow: none !important;
}

body .basket-section .basket-approved-tabs .basket-tabs-close:hover {
  color: #079447 !important;
  background: #f3faf6 !important;
}

body .basket-section .basket-approved-tabs .basket-tabs-close:focus-visible {
  color: #079447 !important;
  outline: 2px solid #079447 !important;
  outline-offset: -2px !important;
}

@media (max-width: 560px) {
  body .basket-section .basket-approved-tabs__scroll {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body .basket-section .basket-approved-tabs__scroll::-webkit-scrollbar {
    display: none;
  }

  body .basket-section .basket-approved-tabs__scroll > [data-basket-tab] {
    flex: 0 0 auto;
    gap: 4px;
    padding-inline: var(--space-2);
    font-size: var(--text-sm);
  }

  body .basket-section .basket-approved-tabs .basket-tabs-close::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 12px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 72%);
  }
}

/* Reserve only the former 12 px technical gap; the close control itself stays in the outer rail. */
body .basket-section .basket-approved-tabs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 12px !important;
  column-gap: 0;
  align-items: stretch;
  overflow: visible;
}

body .basket-section .basket-approved-tabs__scroll {
  width: auto;
  min-width: 0;
}

body .basket-section .basket-approved-tabs .basket-tabs-close {
  position: absolute;
  top: 0;
  right: calc(-1 * var(--basket-action-rail-width));
  z-index: 5;
  flex: none;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

/* A compact top breathing space replaces the removed drawer header. */
body .basket-section .basket-approved-tabs {
  box-sizing: content-box;
  padding-top: 6px;
}

body .basket-section .basket-approved-tabs .basket-tabs-close {
  top: 6px;
}

/* Match the close-side technical gap on the left without moving the tabs. */
body .basket-section .basket-approved-tabs__scroll {
  position: relative;
  border-bottom: 0;
}

body .basket-section .basket-approved-tabs__scroll::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 12px;
  height: 1px;
  background: #dfe5e1;
  pointer-events: none;
}

/* The drawer close action stays outside the tab grid and above all cart layers. */
body .basket-section .basket-approved-tabs {
  --basket-close-top: 6px;
  --basket-close-right: calc(10px - var(--basket-action-rail-width));
}

body .basket-section .basket-approved-tabs .basket-tabs-close {
  position: absolute !important;
  top: var(--basket-close-top) !important;
  right: var(--basket-close-right) !important;
  z-index: 30 !important;
  isolation: isolate;
  pointer-events: auto;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  border: 1px solid #dfe6e2 !important;
  background: #fff !important;
  font-size: 22px !important;
}

body .basket-section .basket-approved-tabs .basket-tabs-close:hover {
  color: #8a6338 !important;
  background: #fff !important;
}

/* Closing the basket uses the same restrained destructive color as item removal. */
body .basket-section .basket-drawer-head .cart-close-inline:hover,
body .basket-section .basket-approved-tabs .basket-tabs-close:hover {
  color: #c4514f !important;
}

/* Narrow only the drawer's empty side frame; keep the usable content width unchanged. */
@media (min-width: 797px) {
  body.cart-open .basket-section,
  body.cart-closing .basket-section {
    width: 770px !important;
  }

  body .basket-section .basket-board {
    --basket-action-rail-width: 15px;
  }

  body .basket-section .basket-price-table-scroll {
    margin-left: 13px;
  }
}

/* Hover and keyboard focus remain distinct from the green active state. */
body .basket-section .basket-approved-tabs__scroll > [data-basket-tab]:not(.active):hover,
body .basket-section .basket-approved-tabs__scroll > [data-basket-tab]:not(.active):focus-visible {
  color: #44515c;
  background: transparent;
}

body .basket-section .basket-approved-tabs__scroll > [data-basket-tab]:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(7, 148, 71, 0.32);
  outline-offset: -2px;
}

/* The active final card keeps its existing green frame except for the duplicated right divider. */
body .basket-section .basket-network-card:last-child.active {
  border-right-color: transparent;
}

/* The card immediately before the visible right scroll edge must not double the arrow boundary. */
body .basket-section .basket-network-card.is-before-right-arrow {
  border-right-color: transparent;
}

/* The card immediately after the visible left scroll edge must not double the arrow boundary. */
body .basket-section .basket-network-card.is-after-left-arrow {
  border-left-color: transparent;
}

/* The partly clipped card before the left arrow must not draw a second divider. */
body .basket-section .basket-network-card.is-before-left-arrow {
  border-right-color: transparent;
}

/* Sticky fade pseudo-elements became grid tracks and added two phantom store widths. */
body .basket-section .basket-network-scroll.can-scroll-left::before,
body .basket-section .basket-network-scroll.can-scroll-right::after {
  content: none;
}

/* Canonical product links retain the compact product-card typography. */
.test-page .product-card .product-title__link {
  display: inline;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.test-page .product-card .product-title__link:focus-visible,
.test-page .product-card .product-image__link:focus-visible {
  outline: 2px solid rgba(7, 148, 71, 0.34);
  outline-offset: 2px;
  border-radius: 3px;
}

.test-page .product-card .product-title__link[hidden] {
  display: none;
}

/* Only the quantity text intercepts clicks; the row does not cover the third title line. */
.test-page .product-card .product-title__weight {
  pointer-events: auto;
  cursor: auto;
  user-select: text;
}

.test-page .product-card .product-image__link {
  color: inherit;
  text-decoration: none;
}

/* Basket store cards: one stable metadata line and one status line. */
body .basket-section .basket-network-card {
  grid-template-columns: 26px minmax(0, 1fr) !important;
  grid-template-rows: 14px 19px 13px 13px !important;
  min-width: 184px !important;
  width: 184px !important;
  height: 74px !important;
  min-height: 74px !important;
  padding: 6px 8px !important;
  column-gap: 7px !important;
  row-gap: 0 !important;
}

body .basket-section .basket-network-logo {
  grid-column: 1 !important;
  grid-row: 1 / 5 !important;
  width: 24px !important;
  height: 24px !important;
}

body .basket-section .basket-network-card b {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  padding: 0 !important;
  line-height: 14px !important;
}

body .basket-section .basket-network-card strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: center !important;
  line-height: 19px !important;
}

body .basket-section .basket-network-card small.basket-network-meta {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #66746d !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 13px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .basket-section .basket-network-status {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 4 !important;
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #718078 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 13px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .basket-section .basket-network-status.is-best,
body .basket-section .basket-network-status.is-complete {
  color: #079447 !important;
}

body .basket-section .basket-network-status.is-higher {
  color: #8a6338 !important;
}

body .basket-section .basket-network-status.is-incomplete,
body .basket-section .basket-network-status.is-coverage-leader,
body .basket-section .basket-network-status.is-excluded {
  color: #718078 !important;
}

/* Product names use a stable, three-line slot without splitting words. */
@media (min-width: 797px) {
  body .basket-section .basket-price-row {
    height: 76px !important;
    min-height: 76px !important;
    grid-template-columns:
      0
      40px
      214px
      84px
      repeat(var(--basket-store-count), 91px) !important;
  }

  body .basket-section .basket-price-head {
    grid-template-columns:
      254px
      84px
      repeat(var(--basket-store-count), 91px) !important;
  }

  body .basket-section .basket-price-head > span:nth-child(2) {
    width: 84px;
    justify-self: stretch;
  }

  body .basket-section .basket-price-row > .basket-row-qty {
    width: 58px !important;
    justify-self: center;
  }

  body .basket-section .basket-row-qty .qty-button {
    width: 21px !important;
    min-width: 21px;
    font-size: 14px;
  }

  body .basket-section .basket-row-qty strong {
    min-width: 8px;
  }
}

body .basket-section .basket-price-row .basket-row-main strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

body .basket-section .basket-price-cell--empty {
  pointer-events: none;
  background: #fff;
}

@media (max-width: 796px) {
  body .basket-section .basket-price-row {
    height: 82px !important;
    min-height: 82px !important;
  }
}

/* The eligibility label is layered at the bottom of a full-height product
   column, so showing it never changes the layout of the product details. */
body .basket-section .basket-price-row .basket-row-main {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  padding-right: 0;
}

body .basket-section .basket-row-product-details {
  width: 100%;
  min-width: 0;
}

body .basket-section .basket-row-eligibility-status {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 4px;
  margin: 0 !important;
}

body .basket-section .basket-row-eligibility-status.is-hidden {
  visibility: hidden;
}

/* Product pack is kept in the spare space below the thumbnail, leaving the
   title column reserved for the product name and its fixed status slot. */
body .basket-section .basket-price-row .basket-row-product-media {
  position: relative;
  display: grid;
  align-self: stretch;
  align-items: center;
  justify-items: center;
  min-width: 0;
}

body .basket-section .basket-price-row .basket-row-pack {
  display: block;
  position: absolute;
  bottom: 3px;
  max-width: 100%;
  overflow: hidden;
  color: #697386;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep the remove rail aligned with table rows, but make only the cross and
   its 3px surround interactive. */
body .basket-section .basket-price-remove-rail-row {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 100%;
}

body .basket-section .basket-price-remove-rail .basket-row-remove {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
}

/* The former delete rail is removed; its width now belongs to the scrollable
   table, while the existing delete control is anchored in the product cell. */
@media (min-width: 797px) {
  body .basket-section .basket-price-row {
    grid-template-columns:
      40px
      214px
      84px
      repeat(var(--basket-store-count), 91px) !important;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-price-row {
    grid-template-columns:
      42px
      96px
      110px
      repeat(var(--basket-store-count), 135px) !important;
  }
}

body .basket-section .basket-price-row .basket-row-main {
  padding-right: 28px;
}

body .basket-section .basket-price-row .basket-row-main > .basket-row-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  color: #8a93a3;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

body .basket-section .basket-price-row .basket-row-main > .basket-row-remove:hover {
  color: #8a6338;
  background: transparent;
}

/* The product image owns the delete action: the overlay has no layout impact
   and stays in the same corner of every thumbnail. */
body .basket-section .basket-price-row .basket-row-main {
  padding-right: 0;
}

body .basket-section .basket-row-photo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
}

body .basket-section .basket-row-photo-frame > .basket-row-remove {
  position: absolute;
  top: -10px;
  right: auto;
  left: -14px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: 1px solid #e2e7e4;
  border-radius: 50%;
  color: #8a93a3;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
  font-size: 14px;
  line-height: 1;
}

body .basket-section .basket-row-photo-frame > .basket-row-remove:hover {
  color: #8a6338;
  background: #fff;
}

/* Keep the remove control above row content, selected prices and the sticky table head. */
body .basket-section .basket-price-row {
  z-index: 8;
  isolation: isolate;
  overflow: visible;
}

body .basket-section .basket-price-row .basket-row-product-media {
  z-index: 9;
  overflow: visible;
}

body .basket-section .basket-row-photo-frame {
  z-index: 10;
  overflow: visible;
}

body .basket-section .basket-row-photo-frame > .basket-row-remove {
  z-index: 11;
}

/* The remove controls live above the scroll viewport, so its edge cannot clip them. */
body .basket-section .basket-price-table {
  position: relative;
  overflow: visible !important;
}

body .basket-section .basket-price-remove-overlay {
  position: absolute;
  inset: 0;
  left: -36px;
  z-index: 12;
  overflow: visible;
  pointer-events: none;
}

body .basket-section .basket-price-remove-hover-zone {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 36px;
  pointer-events: auto;
}

body .basket-section .basket-price-remove-overlay .basket-row-remove {
  position: absolute;
  z-index: 13;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  color: #8a93a3;
  background: transparent;
  box-shadow: none;
  font-size: 15.4px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

body .basket-section .basket-price-remove-overlay .basket-row-remove.is-hover-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body .basket-section .basket-price-remove-overlay .basket-row-remove::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 85%;
  height: 85%;
  border: 1px solid #e2e7e4;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
}

body .basket-section .basket-price-remove-overlay .basket-row-remove:hover {
  color: #8a6338;
  background: transparent;
}

/* Product-delete crosses stay visible as a destructive action in every basket layout. */
body .basket-section .basket-price-row > .basket-row-remove,
body .basket-section .basket-price-row .basket-row-main > .basket-row-remove,
body .basket-section .basket-row-photo-frame > .basket-row-remove,
body .basket-section .basket-price-remove-overlay .basket-row-remove,
body .basket-section .basket-price-row > .basket-row-remove:hover,
body .basket-section .basket-price-row .basket-row-main > .basket-row-remove:hover,
body .basket-section .basket-row-photo-frame > .basket-row-remove:hover,
body .basket-section .basket-price-remove-overlay .basket-row-remove:hover {
  color: #c4514f;
}

/* Retain the former action-rail inset after moving the action onto the photo. */
body .basket-section .basket-price-table-scroll {
  box-sizing: border-box;
  margin-left: 28px;
  padding-left: 4px;
}

@media (max-width: 796px) {
  body .basket-section .basket-row-photo-frame {
    width: 36px;
    height: 46px;
  }
}

body .basket-section .basket-row-qty .basket-qty-input {
  width: 18px;
  min-width: 18px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px !important;
  text-align: center;
  letter-spacing: -0.4px;
}

@media (max-width: 796px) {
  body .basket-section .basket-row-qty .basket-qty-input {
    width: 22px;
    min-width: 22px;
    height: 50px;
    min-height: 50px;
  }
}

@media (min-width: 797px) {
  body .basket-section .basket-price-row {
    height: 80px !important;
    min-height: 80px !important;
  }

  body .basket-section .basket-price-row > .basket-row-qty {
    height: 34px !important;
    min-height: 34px;
  }

  body .basket-section .basket-row-qty .qty-button,
  body .basket-section .basket-row-qty .basket-qty-input {
    height: 34px !important;
    min-height: 34px;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-price-row {
    height: 86px !important;
    min-height: 86px !important;
  }
}

@media (min-width: 797px) {
  body .basket-section .basket-price-table-scroll {
    margin-left: 13px;
  }
}

/* Keep the saving help control next to its label without moving the amount. */
body .basket-section .basket-summary-saving-label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  height: 20px;
}

body .basket-section .basket-summary-saving .basket-summary-info {
  position: absolute;
  top: 0;
  left: calc(100% + 3px);
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  width: 20px !important;
  min-width: 20px;
  height: 20px !important;
  min-height: 20px;
}

/* Local preview: one table render with a fixed product-and-quantity layer.
   Only the store columns pass beneath this opaque sticky surface. */
body .basket-section .basket-price-table-scroll {
  --basket-fixed-media-width: 40px;
  --basket-fixed-product-width: 254px;
}

body .basket-section .basket-price-head > span:nth-child(1),
body .basket-section .basket-price-head > span:nth-child(2),
body .basket-section .basket-price-row .basket-row-product-media,
body .basket-section .basket-price-row .basket-row-main,
body .basket-section .basket-price-row .basket-row-qty-sticky {
  position: sticky;
  background: #fff;
}

body .basket-section .basket-price-head > span:nth-child(1) {
  left: 0;
  z-index: 20;
}

body .basket-section .basket-price-head > span:nth-child(2) {
  left: var(--basket-fixed-product-width);
  z-index: 21;
  box-shadow: 1px 0 0 #e0e5e2;
}

body .basket-section .basket-qty-limit-hint {
  position: absolute;
  top: calc(50% + 19px);
  right: 0;
  left: 0;
  color: #718078;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  pointer-events: none;
}

body .basket-section .basket-qty-limit-hint[hidden] {
  display: none;
}

body .basket-section .basket-price-row .basket-row-product-media {
  left: 0;
  z-index: 9;
}

body .basket-section .basket-price-row .basket-row-main {
  left: var(--basket-fixed-media-width);
  z-index: 9;
}

body .basket-section .basket-price-row .basket-row-qty-sticky {
  left: var(--basket-fixed-product-width);
  z-index: 10;
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 0;
  box-shadow: 1px 0 0 #e0e5e2;
}

body .basket-section .basket-row-qty-sticky > .basket-row-qty {
  grid-column: auto;
}

@media (min-width: 797px) {
  body .basket-section .basket-row-qty-sticky > .basket-row-qty {
    width: 58px !important;
    height: 34px !important;
    min-height: 34px;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-price-table-scroll {
    --basket-fixed-media-width: 42px;
    --basket-fixed-product-width: 138px;
  }

  body .basket-section .basket-qty-limit-hint {
    top: calc(50% + 27px);
  }
}

/* Footer utility controls retain their size; only their shared gap is reduced by 30%. */
body .basket-section .basket-approved-secondary {
  gap: 12px;
}

@media (max-width: 796px) {
  body .basket-section .basket-approved-secondary {
    gap: 6px;
  }
}

/* Keep secondary-tab panels inside the same content frame as "Весь список". */
body .basket-section .basket-board.is-secondary-tab .basket-price-table {
  display: block !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: none;
  margin-left: var(--basket-action-rail-width);
  margin-right: var(--basket-content-right-inset);
  padding-right: 0;
  overflow: auto !important;
}

/* The empty main list follows the same compact content frame as secondary tabs. */
body .basket-section .basket-board.is-empty-basket .basket-price-table {
  display: block !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: none;
  flex: 1 1 auto !important;
  min-height: 0;
  margin-left: var(--basket-action-rail-width);
  margin-right: var(--basket-content-right-inset);
  padding-right: 0;
  overflow: auto !important;
}

body .basket-section .basket-board.is-secondary-tab .basket-price-table > .basket-empty-state,
body .basket-section .basket-board.is-secondary-tab .basket-price-table > .basket-watch-panel,
body .basket-section .basket-board.is-empty-basket .basket-price-table > .basket-empty-state {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* Cart action popovers: one compact rhythm for sharing and downloading. */
body .basket-section [data-basket-share-action="email"] .basket-action-menu-item__icon {
  color: #121827;
}

/* Keep utility share actions neutral; Telegram and WhatsApp retain their brand marks. */
body .basket-section [data-basket-share-action]:not([data-basket-share-action="telegram"]):not([data-basket-share-action="whatsapp"]) .basket-action-menu-item__icon {
  color: #121827;
}

/* Share-menu icons stay clean and unframed. */
body .basket-section [data-basket-share-action] .basket-action-menu-item__icon {
  background: transparent;
}

@media (min-width: 797px) {
  body .basket-section .basket-action-popover {
    box-sizing: border-box;
    bottom: calc(100% + 16px);
    width: fit-content;
    min-width: 260px;
    max-width: min(300px, calc(100vw - 32px));
    padding: 8px;
  }

  body .basket-section .basket-action-popover__title {
    padding: 4px 6px 7px;
  }

  body .basket-section .basket-action-menu {
    gap: 0;
  }

  body .basket-section .basket-action-popover .basket-action-menu-item,
  body .basket-section .basket-action-popover .basket-download-options > button {
    min-height: 48px;
    padding: 7px 8px;
    gap: 10px;
    align-items: center;
  }

  body .basket-section .basket-action-popover .basket-action-menu-item:has(.basket-action-menu-item__description) {
    min-height: 56px;
    align-items: flex-start;
  }

  body .basket-section .basket-action-popover .basket-action-popover__divider {
    margin: 4px 6px;
  }

  body .basket-section .basket-action-popover .basket-action-menu-item__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 796px) {
  body .basket-section .basket-action-sheet,
  body .basket-section .basket-download-sheet {
    box-sizing: border-box;
    max-height: calc(100dvh - 12px);
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body .basket-section .basket-action-sheet__handle,
  body .basket-section .basket-download-handle {
    margin: 0 auto 10px;
  }

  body .basket-section .basket-action-sheet__subtitle,
  body .basket-section .basket-download-sheet > p {
    margin: 3px 0 10px;
  }

  body .basket-section .basket-action-sheet .basket-action-menu,
  body .basket-section .basket-download-sheet .basket-download-options {
    gap: 6px;
  }

  body .basket-section .basket-action-sheet .basket-action-menu-item,
  body .basket-section .basket-download-sheet .basket-action-menu-item {
    min-height: 56px;
    margin-bottom: 0;
    padding: 7px 8px;
    gap: 10px;
  }

  body .basket-section .basket-action-sheet .basket-action-menu-item:has(.basket-action-menu-item__description),
  body .basket-section .basket-download-sheet .basket-action-menu-item:has(.basket-action-menu-item__description) {
    align-items: flex-start;
  }

  body .basket-section .basket-action-sheet .basket-action-popover__divider {
    margin: 5px 6px;
  }

  body .basket-section .basket-action-sheet .basket-action-menu-item__description,
  body .basket-section .basket-download-sheet .basket-action-menu-item__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

body .basket-section .basket-action-sheet__cancel,
  body .basket-section .basket-download-cancel {
    min-height: 48px;
    height: 48px;
    margin-top: 8px;
  }
}

/* Product-card actions use one hover treatment, regardless of the card section. */
.test-page .product-card .favorite-button:hover,
.test-page .product-card .favorite-button:focus-visible,
.test-page .product-card .price-alert-button:hover,
.test-page .product-card .price-alert-button:focus-visible,
.test-page .product-card .shopping-list-button:hover,
.test-page .product-card .shopping-list-button:focus-visible {
  color: #079447 !important;
  border-color: #e0e6e1 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  transform: none !important;
  outline: 0;
}

/* Icon lab: the heart stays tappable while its round button treatment is removed. */
.test-page .product-card.icon-lab-card .favorite-button,
.test-page .product-card.icon-lab-card .favorite-button:hover,
.test-page .product-card.icon-lab-card .favorite-button:focus-visible,
.test-page .product-card.icon-lab-card .favorite-button:active,
.test-page .product-card.icon-lab-card .favorite-button.is-favorite-active,
.test-page .product-card.icon-lab-card .favorite-button[aria-pressed="true"] {
  font-size: 27px !important;
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Closing the price-watch dialog returns focus to its trigger. Do not draw a
   transient focus ring around that bare card icon after the dialog closes. */
.test-page .product-card .price-alert-button.is-focus-restored:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

.test-page .product-card.icon-lab-card .favorite-button.is-favorite-active,
.test-page .product-card.icon-lab-card .favorite-button[aria-pressed="true"] {
  color: #079447 !important;
}

.test-page .product-card.icon-lab-card .favorite-button:hover,
.test-page .product-card.icon-lab-card .favorite-button:focus-visible {
  color: #079447 !important;
}

/* Icon lab: all three card actions share one bare-icon treatment and 6px visual rhythm. */
.test-page .product-card.icon-lab-card .favorite-button,
.test-page .product-card.icon-lab-card .price-alert-button,
.test-page .product-card.icon-lab-card .shopping-list-button,
.test-page .product-card.icon-lab-card .price-alert-button.is-watch-active,
.test-page .product-card.icon-lab-card .price-alert-button.is-watch-reached,
.test-page .product-card.icon-lab-card .shopping-list-button.is-active,
.test-page .product-card.icon-lab-card .shopping-list-button[aria-pressed="true"] {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.test-page .test-home-section-grid .product-card.icon-lab-card .favorite-button {
  top: 14px;
}

.test-page .test-home-section-grid .product-card.icon-lab-card .price-alert-button {
  top: 48px;
}

.test-page .test-home-section-grid .product-card.icon-lab-card .shopping-list-button {
  top: 82px;
}

.test-page .product-card.icon-lab-card .price-alert-button svg,
.test-page .product-card.icon-lab-card .shopping-list-button svg {
  width: 22.8px !important;
  height: 22.8px !important;
}

.test-page .product-card.icon-lab-card .price-alert-button:hover,
.test-page .product-card.icon-lab-card .price-alert-button:focus-visible,
.test-page .product-card.icon-lab-card .price-alert-button.is-watch-active,
.test-page .product-card.icon-lab-card .price-alert-button.is-watch-reached,
.test-page .product-card.icon-lab-card .shopping-list-button:hover,
.test-page .product-card.icon-lab-card .shopping-list-button:focus-visible,
.test-page .product-card.icon-lab-card .shopping-list-button.is-active,
.test-page .product-card.icon-lab-card .shopping-list-button[aria-pressed="true"] {
  color: #079447 !important;
}

@media (max-width: 519px) {
  .test-page .test-home-section-grid .product-card.icon-lab-card .favorite-button {
    top: 10px;
  }

  .test-page .test-home-section-grid .product-card.icon-lab-card .price-alert-button {
    top: 44px;
  }

  .test-page .test-home-section-grid .product-card.icon-lab-card .shopping-list-button {
    top: 78px;
  }
}

/* All product cards use the approved bare action-icon system. */
.test-page .product-card .favorite-button,
.test-page .product-card .price-alert-button,
.test-page .product-card .shopping-list-button,
.test-page .product-card .price-alert-button.is-watch-active,
.test-page .product-card .price-alert-button.is-watch-reached,
.test-page .product-card .shopping-list-button.is-active,
.test-page .product-card .shopping-list-button[aria-pressed="true"] {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0;
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.test-page .product-card .favorite-button {
  top: 14px !important;
  right: 14px !important;
  font-size: 27px !important;
  line-height: 1;
}

.test-page .product-card .price-alert-button {
  top: 48px !important;
  right: 14px !important;
}

.test-page .product-card .shopping-list-button {
  top: 82px !important;
  right: 14px !important;
}

.test-page .product-card .price-alert-button svg,
.test-page .product-card .shopping-list-button svg {
  width: 22.8px !important;
  height: 22.8px !important;
}

.test-page .product-card .favorite-button:hover,
.test-page .product-card .favorite-button:focus-visible,
.test-page .product-card .favorite-button.is-favorite-active,
.test-page .product-card .favorite-button[aria-pressed="true"],
.test-page .product-card .price-alert-button:hover,
.test-page .product-card .price-alert-button:focus-visible,
.test-page .product-card .price-alert-button.is-watch-active,
.test-page .product-card .price-alert-button.is-watch-reached,
.test-page .product-card .shopping-list-button:hover,
.test-page .product-card .shopping-list-button:focus-visible,
.test-page .product-card .shopping-list-button.is-active,
.test-page .product-card .shopping-list-button[aria-pressed="true"] {
  color: #079447 !important;
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 519px) {
  .test-page .product-card .favorite-button {
    top: 10px !important;
    right: 10px !important;
  }

  .test-page .product-card .price-alert-button {
    top: 44px !important;
    right: 10px !important;
  }

  .test-page .product-card .shopping-list-button {
    top: 78px !important;
    right: 10px !important;
  }
}
/* Generated result-card preview: intentionally scoped to the basket share flow. */
.basket-result-preview{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(18,24,39,.5);overflow:auto}
.basket-result-preview__dialog{position:relative;width:min(760px,100%);max-height:calc(100vh - 48px);padding:22px;background:#fff;border:1px solid #e2e9e4;border-radius:22px;box-shadow:0 24px 70px rgba(18,24,39,.28);outline:0}
.basket-result-preview__dialog>img{display:block;width:100%;max-height:68vh;object-fit:contain;border-radius:14px;background:#f5f8f5}
.basket-result-preview__close{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#c4514f;font-size:30px;line-height:1;box-shadow:0 2px 12px rgba(18,24,39,.14);cursor:pointer}
.basket-result-preview__actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:16px}.basket-result-preview__actions button{min-height:44px;padding:10px 14px;border:1px solid #d9e6dd;border-radius:11px;background:#fff;color:#121827;font:600 14px/1 inherit;cursor:pointer}.basket-result-preview__actions button:first-child{background:#079447;border-color:#079447;color:#fff}.basket-result-preview__actions button:hover{border-color:#079447;color:#079447}.basket-result-preview__actions button:first-child:hover{color:#fff;filter:brightness(.95)}
@media (max-width:796px){.basket-result-preview{padding:0;align-items:end}.basket-result-preview__dialog{width:100%;max-height:94vh;border-radius:20px 20px 0 0;padding:16px}.basket-result-preview__dialog>img{max-height:65vh}.basket-result-preview__actions{display:grid;grid-template-columns:1fr 1fr}.basket-result-preview__actions button{min-width:0}.basket-result-preview__close{top:8px;right:8px}}

/* Hero: keep the search caption directly beneath the field without changing its geometry. */
.hero h1 {
  order: 1;
  font-weight: 650;
}

.hero .search-shell {
  order: 2;
}

.hero .eyebrow {
  order: 3;
  margin: 10px 0 0;
  transform: none;
}

/* Hero vertical rhythm: compact heading → search → caption composition. */
@media (min-width: 901px) {
  .hero .hero-copy {
    transform: translateY(-49px);
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .workspace {
    margin-top: -86px;
  }
}

.hero .eyebrow {
  margin: 6px 0 0 17px;
  color: #7c8491;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero h1 {
    margin-bottom: 16px;
  }
}

/* Compact the first screen as one unit without changing its internal rhythm. */
main > .hero {
  margin-top: -10px;
}

.hero-visual.hero-media .hero-products {
  transform: translate(-1px, 10px);
}

/* Temporary top-navigation destinations: use the public header and site tokens. */
.topbar [data-public-nav] { position: relative; }
.topbar [data-public-nav] > a { display: grid; grid-template-areas: "label"; }
.topbar [data-public-nav] .nav-link__label,
.topbar [data-public-nav] .nav-link__measure { grid-area: label; white-space: nowrap; }
.topbar [data-public-nav] .nav-link__measure { visibility: hidden; font-weight: 800; pointer-events: none; }
.topbar [data-public-nav] .nav-indicator { position: absolute; left: 0; bottom: 13px; z-index: 1; width: 0; height: 3px; border-radius: 999px; pointer-events: none; opacity: 0; background: #079447; will-change: transform, width; }
.topbar [data-public-nav][data-public-nav-positioned] .nav-indicator { opacity: 1; }
.topbar [data-public-nav][data-public-nav-ready]:not([data-public-nav-resizing]) .nav-indicator { transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), width 500ms cubic-bezier(0.4, 0, 0.2, 1); }
.topbar [data-public-nav] a.active { border-bottom: 0; text-decoration: none; }
.topbar [data-public-nav] a.active::before,
.topbar [data-public-nav] a.active::after { display: none; content: none; }
@media (prefers-reduced-motion: reduce) { .topbar [data-public-nav] .nav-indicator { transition: none !important; } }

.navigation-placeholder-page {
  min-height: 100vh;
  background: #f7f9f5;
}

.navigation-placeholder {
  width: min(100% - 40px, 640px);
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 56px 0;
}

.navigation-placeholder__card {
  width: 100%;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid #e1e9e3;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(18, 39, 28, 0.08);
  text-align: center;
}

.navigation-placeholder__card h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
  line-height: 1.16;
}

.navigation-placeholder__card p {
  margin: 14px 0 24px;
  color: #667085;
  font-size: 16px;
  line-height: 1.5;
}

.navigation-placeholder__home-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #079447;
  border-radius: 10px;
  color: #ffffff;
  background: #079447;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.navigation-placeholder__home-link:hover {
  color: #ffffff;
  background: #067f3d;
  border-color: #067f3d;
}

/* Current footer navigation: only live and planned public destinations are shown. */
.site-footer a:focus-visible {
  outline: 3px solid rgba(7, 148, 71, 0.28);
  outline-offset: 3px;
}

.site-footer .footer-main {
  grid-template-columns: minmax(220px, 1.28fr) minmax(130px, 0.8fr) minmax(170px, 1fr) minmax(205px, 1.16fr) minmax(280px, 1.3fr);
}

.site-footer .footer-app-card {
  height: 188px;
}

.site-footer .footer-app-content {
  width: 58%;
  padding-top: 24px;
}

.site-footer .footer-app-text {
  max-width: 190px;
  margin-bottom: 0;
}

.site-footer .footer-bottom {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 22px;
  padding: 14px 0;
}

.site-footer .footer-bottom-links {
  justify-content: flex-end;
  gap: 28px;
}

@media (max-width: 1180px) {
  .site-footer .footer-main {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .site-footer .footer-app-card {
    height: 188px;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-app-card {
    height: 210px;
  }

  .site-footer .footer-app-content {
    width: 60%;
  }

  .site-footer .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
    padding: 14px 0;
  }

  .site-footer .footer-bottom-links {
    justify-content: flex-start;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .navigation-placeholder {
    width: min(100% - 24px, 640px);
    min-height: calc(100vh - 68px);
    padding: 28px 0;
  }

  .navigation-placeholder__card {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

/*
 * Tablets show a single 1440px public PC canvas rather than a responsive
 * tablet variant. `public-pc-canvas.mjs` keeps width media rules at their
 * canonical 1440px state, then this stage scales the whole canvas once.
 */
.public-site-canvas-stage,
.public-site-canvas { display: contents; }

html.public-pc-canvas-active,
body.public-pc-canvas-active { overflow-x: clip; }

html.public-pc-canvas-active .public-site-canvas-stage {
  position: relative;
  display: block;
  width: 100%;
  height: var(--public-pc-canvas-height, auto);
}

html.public-pc-canvas-active .public-site-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--public-pc-canvas-layout-width, 1440px);
  min-width: var(--public-pc-canvas-layout-width, 1440px);
  transform: scale(var(--public-pc-canvas-scale));
  transform-origin: top left;
}

/* Home category grid: soften names without recoloring icons or controls. */
body[data-page="test"] #categoryList .parent-category:not(.active) .category-name > span:last-child {
  color: #35404F;
}

/* Home text refinement: leave active labels and navigation hover colors intact. */
body[data-page="test"] #categoryList .subcategory-button:not(.active) .category-name > span:last-child {
  color: #35404F;
}

body[data-page="test"] .topbar [data-public-nav] > a:not(.active):not([aria-current="page"]):not(:hover) {
  color: #35404F;
}

/* Home header: soften button text without changing icons or interaction styles. */
body[data-page="test"] .topbar .location-button:not(.active):not([aria-current="page"]),
body[data-page="test"] .topbar .login-button:not(.active):not([aria-current="page"]) {
  color: #35404F;
}

/* Catalog cards: soften product names without recoloring prices or metadata. */
body[data-page="test"] .catalog-panel .product-grid .product-card .product-title {
  color: #35404F;
}

/* Home hero: refine only the main heading color and supported font weight. */
body[data-page="test"] #top > .hero > .hero-copy > h1 {
  color: #35404F;
  font-weight: 600;
}

/* Home text consistency: primary assistant labels and named section/footer headings. */
body[data-page="test"] .assistant-panel .assistant-title,
body[data-page="test"] .assistant-panel .feature-text > strong,
body[data-page="test"] .assistant-panel .app-download-title,
body[data-page="test"] [data-test-home-section="best-prices"] .test-home-section-title,
body[data-page="test"] [data-test-home-section="recently-dropped"] .test-home-section-title,
body[data-page="test"] .site-footer .footer-title,
body[data-page="test"] .site-footer .footer-app-title {
  color: #35404F;
}

/* Footer app badges reuse the existing store styling without store URLs. */
.site-footer .footer-app-content {
  box-sizing: border-box;
  padding-right: 12px;
  width: 200px;
  max-width: 100%;
}

.site-footer .footer-app-content .footer-store-buttons {
  width: min(152px, 100%);
  margin-top: 12px;
}

.site-footer .footer-app-content .footer-store-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
}

/* Smaller footer-only badges; the left axis and restored background stay fixed. */
.site-footer .footer-app-content {
  width: min(174.8px, calc(50% + 28px));
}

.site-footer .footer-app-content .app-download-store-buttons {
  width: min(142.8px, 100%) !important;
}

.site-footer .footer-app-content .app-download-store-buttons .footer-store-button {
  width: 100% !important;
  height: 35.7px !important;
  min-height: 37.4px !important;
  padding: 0.85px 6.8px 0 !important;
  border-radius: 10.2px;
}

.site-footer .footer-app-content .app-download-store-buttons .footer-store-button img {
  width: 129.2px;
  height: 28.9px;
  max-width: 100%;
  max-height: 28.9px;
}

@media (max-width: 760px) {
  .site-footer .footer-app-content .app-download-store-buttons {
    width: min(136px, 100%) !important;
  }

  .site-footer .footer-app-content .app-download-store-buttons .footer-store-button img {
    width: 122.4px;
  }
}

/* Original iOS depth, deterministically recolored toward Home search green.
   Circle and lighting are in the PNG; preserve target and badge geometry. */
#cartButton,
#cartButton:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
}

#cartButton .cart-fab-icon {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  object-fit: contain;
  transform: scale(1.5349);
}

/* Separate iOS-style notification badge; existing count and has-items state
   still drive the contents and empty-state presentation. */
#cartButton .cart-fab-count {
  top: auto;
  right: 18%;
  bottom: 18%;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

#cartButton.has-items .cart-fab-count {
  background: #e9564b;
}

/* The existing has-items state tracks the real basket count. Hide the entire
   badge when empty; positive values and badge geometry remain unchanged. */
#cartButton:not(.has-items) .cart-fab-count {
  display: none;
}

/* Owner-approved OpenDesign appearance; Consumer state/data/navigation remain unchanged. */
body.test-page .assistant-panel {
 --sa-bg:oklch(0.978 0.006 145); --sa-surface:oklch(1 0 0);
 --sa-fg:oklch(0.365 0.03 256); --sa-muted:oklch(0.465 0.025 256);
 --sa-border:oklch(0.92 0.008 150); --sa-accent:#079447;
 --sa-font:Manrope,system-ui,sans-serif;
 --sa-fg-soft:color-mix(in oklch,var(--sa-fg) 6%,transparent);
 --sa-accent-soft:color-mix(in oklch,var(--sa-accent) 8%,var(--sa-surface));
 --cenatut-primary-text:var(--sa-fg);
}
body.test-page .assistant-panel .assistant-card {padding:18px 15px 16px;border:1px solid var(--sa-border);border-radius:18px;background:var(--sa-surface);box-shadow:0 8px 24px color-mix(in oklch,var(--sa-fg) 5%,transparent);color:var(--sa-fg)}
body.test-page .assistant-panel .assistant-head {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
body.test-page .assistant-panel .assistant-title {font:800 15px/1.3 var(--sa-font);letter-spacing:-.25px;max-width:150px}
body.test-page .assistant-panel .preview-badge {display:inline-flex;align-items:center;gap:4px;flex:none;padding:6px 7px;border-radius:20px;color:var(--sa-fg);background:color-mix(in oklch,var(--sa-fg) 5%,var(--sa-surface));font-size:10px;font-weight:700;line-height:1}
body.test-page .assistant-panel .preview-badge svg {width:11px;height:11px;stroke-width:1.8}
body.test-page .assistant-panel .feature-list {display:grid;gap:8px;margin-bottom:14px}
body.test-page .assistant-panel .feature-item {position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) 30px;align-items:center;gap:8px;height:54px;min-height:54px;width:100%;padding:10px 8px;text-align:left;border:1px solid color-mix(in oklch,var(--sa-border) 85%,var(--sa-surface));border-radius:11px;background:var(--sa-surface);color:var(--sa-fg);transition:background .15s,border-color .15s,box-shadow .15s}
body.test-page .assistant-panel .feature-icon {width:20px;height:22px;display:grid;place-items:center}
body.test-page .assistant-panel .feature-icon svg {width:20px;height:20px;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body.test-page .assistant-panel .feature-text {min-width:0}
body.test-page .assistant-panel .feature-text strong {display:block;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:-.18px}
body.test-page .assistant-panel .feature-text>span {display:block;font-size:10.5px;line-height:1.45;color:var(--sa-muted);margin-top:3px}
body.test-page .assistant-panel .locked-badge {position:absolute;right:10px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:color-mix(in oklch,var(--sa-fg) 5%,var(--sa-surface));color:var(--sa-muted)}
body.test-page .assistant-panel .locked-badge svg {width:12px;height:12px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.test-page .assistant-panel .feature-item:hover {background:color-mix(in oklch,var(--sa-fg) 4%,var(--sa-surface));border-color:color-mix(in oklch,var(--sa-fg) 30%,var(--sa-surface))}
body.test-page .assistant-panel .feature-item:active {background:color-mix(in oklch,var(--sa-fg) 10%,var(--sa-surface));box-shadow:inset 0 1px 3px var(--sa-fg-soft)}
body.test-page .assistant-panel .feature-item:focus-visible {outline-offset:2px}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card .feature-item {height:54px;min-height:54px;padding-block:10px}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card .feature-text>span,
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card .preview-badge,
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card .preview-note,
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card .assistant-primary-btn {display:none}
body.test-page .assistant-panel .assistant-primary-btn {display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:46px;padding:10px 4px;border:1px solid var(--sa-accent);border-radius:11px;color:var(--sa-surface);background:color-mix(in oklch,var(--sa-accent) 82%,var(--sa-fg));font-size:11.5px;font-weight:800;line-height:1.4;box-shadow:0 4px 10px color-mix(in oklch,var(--sa-accent) 14%,transparent);transition:background .15s}
body.test-page .assistant-panel .assistant-primary-btn svg {width:16px;height:16px;flex:none;stroke-width:1.8}
body.test-page .assistant-panel .assistant-primary-btn:hover {background:color-mix(in oklch,var(--sa-accent) 78%,var(--sa-fg));color:var(--sa-surface)}
body.test-page .assistant-panel .assistant-primary-btn:active {background:color-mix(in oklch,var(--sa-accent) 68%,var(--sa-fg));color:var(--sa-surface)}
body.test-page .assistant-panel .app-download {margin-top:14px;padding:14px 12px 15px;border:1px solid var(--sa-border);border-radius:12px;background:var(--sa-bg) url('assets/assistant-app-download-bg.webp') center/112% auto no-repeat}
body.test-page .assistant-panel .app-download-title {font:800 12px/1.4 var(--sa-font);letter-spacing:-.1px;margin:0 0 4px}
body.test-page .assistant-panel .app-download-text {font-size:10.5px;line-height:1.5;color:var(--sa-muted);margin:0;max-width:195px}
body.test-page .assistant-panel .app-download-store-buttons {display:flex;flex-direction:column;gap:8px;margin-top:12px;align-items:flex-start}
body.test-page .assistant-panel .footer-store-button {display:flex;align-items:center;justify-content:center;width:168px;max-width:100%;min-height:44px;padding:4px 8px;background:var(--sa-surface);border:1px solid var(--sa-border);border-radius:10px;box-shadow:0 2px 5px var(--sa-fg-soft);transition:border-color .15s,background .15s}
body.test-page .assistant-panel .footer-store-button img {width:152px;max-width:100%;height:auto}
body.test-page .assistant-panel .footer-store-button:hover {border-color:var(--sa-muted);background:color-mix(in oklch,var(--sa-fg) 3%,var(--sa-surface))}
body.test-page .assistant-panel .footer-store-button:active {background:color-mix(in oklch,var(--sa-fg) 8%,var(--sa-surface))}
body.test-page .assistant-panel .preview-note {display:flex;align-items:center;gap:7px;margin-top:14px;color:var(--sa-muted);font-size:10px;line-height:1.5}
body.test-page .assistant-panel .preview-note svg {width:13px;height:13px;flex:none;stroke-width:1.8}

/* Keep locks in their actual grid cell; badge center follows the same trailing slot. */
body.test-page .assistant-panel .locked-badge {position:static;inset:auto;transform:none;justify-self:center;align-self:center;margin:0;}
body.test-page .assistant-panel .assistant-title {margin:0;color:var(--sa-fg);}
body.test-page .assistant-panel .feature-item {box-sizing:border-box;box-shadow:none;}
body.test-page .assistant-panel .feature-icon {color:var(--sa-fg);flex:none;}
body.test-page .assistant-panel .feature-text strong {margin:0;color:var(--sa-fg);}
body.test-page .assistant-panel .feature-text > span {font-weight:400;}
body.test-page .assistant-panel .assistant-primary-btn {height:auto;margin:0;flex:none;}
body.test-page .assistant-panel .app-download {background-image:url('assets/assistant-app-download-bg.webp');}
body.test-page .assistant-panel .assistant-count-badge {
 inset-inline-end:11px;width:24px;height:24px;padding:0;border-radius:50%;
 background:color-mix(in oklch,var(--sa-fg) 6%,var(--sa-surface));color:var(--sa-fg);
 font-family:var(--sa-font);font-size:11px;font-weight:800;
}
body.test-page .assistant-panel .assistant-count-badge--overflow {inset-inline-end:5px;width:36px;height:22px;border-radius:999px;font-size:10px;}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card button.feature-item {font:inherit;height:54px;min-height:54px;padding-block:10px;}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card button.feature-item:hover {background:color-mix(in oklch,var(--sa-fg) 4%,var(--sa-surface));border-color:color-mix(in oklch,var(--sa-fg) 30%,var(--sa-surface));}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card button.feature-item:focus-visible,
body.test-page .assistant-panel .assistant-primary-btn:focus-visible,
body.test-page .assistant-panel .footer-store-button:focus-visible {outline:2px solid var(--sa-accent);outline-offset:2px;}
body.test-page .assistant-panel[data-assistant-authorized] .assistant-card button.feature-item:active {background:color-mix(in oklch,var(--sa-fg) 10%,var(--sa-surface));box-shadow:inset 0 1px 3px var(--sa-fg-soft);}
body.test-page .assistant-panel .footer-store-button img {object-fit:contain;}
@media(prefers-reduced-motion:reduce) {body.test-page .assistant-panel .assistant-card * {transition:none!important;animation:none!important;}}

/* Expanded prices must escape the metadata layer below the card action icons (5). */
.test-page .product-card.is-stores-expanded > .product-meta {
  z-index: 6;
}

/* Original basket: constrain only the viewport fit, including reserved root gutter. */
body.cart-open #basket,
body.cart-closing #basket {
  max-width: 100% !important;
}
@media (max-width: 796px) {
  body.cart-open #basket,
  body.cart-closing #basket {
    width: 100% !important;
  }
}
/* On narrow phones the original four actions cannot fit in one row. */
@media (max-width: 420px) {
  body #basket .basket-approved-footer {
    flex-wrap: wrap;
    flex-basis: auto !important;
    height: auto !important;
    gap: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  body #basket .basket-approved-secondary {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
  body #basket .basket-footer-save-action {
    width: 100% !important;
    max-width: 100%;
  }
  /* Leave the product pinned; let quantity scroll so complete prices can be read. */
  body #basket .basket-price-row .basket-row-qty-sticky,
  body #basket .basket-price-head > span:nth-child(2) {
    position: static;
  }
}
/* Offscreen row removal controls must not cover the footer. */
body #basket .basket-price-remove-overlay {
  overflow: hidden;
}
@media (max-width: 420px) {
  body #basket .basket-price-row .basket-row-qty-sticky,
  body #basket .basket-price-head > span:nth-child(2) {
    z-index: auto;
  }
}
/* Real browser zoom can leave less height than the fixed summary/store blocks. */
@media (max-height: 600px) {
  body #basket .basket-board {
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
  }
  body #basket .basket-price-table {
    flex: 0 0 180px !important;
    min-height: 180px !important;
  }
  body #basket .basket-approved-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
  }
  body #basket .basket-approved-footer {
    position: sticky !important;
    bottom: 0;
    z-index: 40;
  }
}

/* Preserve the original delete icon; expose it for keyboard focus as well as hover. */
body #basket .basket-price-remove-overlay .basket-row-remove {
  visibility: visible;
}
body #basket .basket-price-remove-overlay .basket-row-remove:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Unavailable workspace rows retain space for their existing status label. */
body .basket-section .basket-approved-summary[data-price-unavailable="true"] ~ .basket-price-table .basket-price-row .basket-row-main strong {
  -webkit-line-clamp: 2 !important;
}

/* Auchan official wordmark only; preserve other retailer rows. */
.store-brand--auchan {display:inline-flex;align-items:center;justify-content:flex-start;max-width:100%;width:var(--auchan-logo-width,52px);height:var(--auchan-logo-height,16px);min-width:0;vertical-align:middle;flex:0 1 var(--auchan-logo-width,52px);}
.store-brand--auchan .auchan-wordmark {display:block;width:auto;max-width:100%;height:var(--auchan-logo-height,16px);object-fit:contain;}
.store-brand--auchan .auchan-wordmark[hidden],.store-brand--auchan .auchan-wordmark-fallback[hidden] {display:none;}
.store-brand--auchan .auchan-wordmark-fallback {font-size:12px;line-height:var(--auchan-logo-height,16px);color:inherit;white-space:nowrap;}
.catalog-panel .product-grid .store-brand--auchan,.product-store-logo.store-brand--auchan,.basket-store-badge.store-brand--auchan,.basket-network-logo.store-brand--auchan,.basket-store-filter-logo.store-brand--auchan {width:var(--auchan-logo-width,52px);height:var(--auchan-logo-height,16px);border-radius:0;background:none;box-shadow:none;text-indent:0;font-size:inherit;}
.store-brand--auchan::before {content:none;}
.card-store-row:has(> .store-brand--auchan),.catalog-panel .product-grid .card-store-row:has(> .store-brand--auchan) {grid-template-columns:minmax(0,1fr) auto;}
.store-brand--auchan + .store-name,.store-brand--auchan + .basket-store-filter-name,.basket-store-top:has(.store-brand--auchan) > .basket-store-name,.basket-network-card:has(> .store-brand--auchan) > b,.product-page__store-cell:has(> .store-brand--auchan) .product-page__store-name {display:none;}
.basket-store-icon:has(> .store-brand--auchan) {width:var(--auchan-logo-width,52px);height:var(--auchan-logo-height,16px);flex:0 1 var(--auchan-logo-width,52px);}
.basket-store-filter-row:has(> .store-brand--auchan) {grid-template-columns:20px minmax(0,1fr);}

/* Scoped overrides for the existing compact card cascade. */
body .card-store-row:has(> .store-brand--auchan),body.test-page .catalog-panel .product-grid .card-store-row:has(> .store-brand--auchan) {grid-template-columns:minmax(0,1fr) max-content !important;}
body .store-brand--auchan + .store-name {display:none !important;}
body .catalog-panel .product-grid .store-logo.store-icon.store-brand--auchan,body .test-home-section-grid .store-logo.store-icon.store-brand--auchan {width:var(--auchan-logo-width,52px);min-width:0;max-width:100%;height:var(--auchan-logo-height,16px);flex:0 1 var(--auchan-logo-width,52px);border-radius:0;background:none;box-shadow:none;text-indent:0;}
body .catalog-panel .product-grid .store-brand--auchan::before {content:none;}

/* Logo bottom edge and price numerals share their typographic baseline. */
body .card-store-row:has(.store-brand--auchan) {align-items:baseline;}
body .store-brand--auchan {align-items:baseline;line-height:0;}
.product-page__price-table tr:has(.store-brand--auchan) > :is(th,td) {vertical-align:baseline;}
.product-page__store-cell:has(.store-brand--auchan) {align-items:baseline;}

body .card-store-row:has(.store-brand--auchan) {align-items:baseline !important;}
body .store-brand--auchan {min-width:var(--auchan-logo-width,52px);flex-shrink:0;}
body .store-brand--auchan .auchan-wordmark {width:var(--auchan-logo-width,52px);max-width:none;height:var(--auchan-logo-height,16px);}
.product-modal .product-card--compact .store-brand--auchan {width:var(--auchan-logo-width,45.5px);min-width:var(--auchan-logo-width,45.5px);height:var(--auchan-logo-height,14px);flex-basis:var(--auchan-logo-width,45.5px);}
.product-modal .product-card--compact .store-brand--auchan .auchan-wordmark {width:var(--auchan-logo-width,45.5px);height:var(--auchan-logo-height,14px);}
@media(max-width:430px) {.product-modal .product-card--compact .card-store-row:has(.store-brand--auchan) {padding-inline:3px;gap:2px;}}

body .store-brand--auchan {--auchan-logo-width:52px;--auchan-logo-height:16px;}
body .product-modal .product-card--compact .store-brand--auchan {--auchan-logo-width:45.5px;--auchan-logo-height:14px;}

.test-page :is(.test-home-section-grid,.catalog-panel .product-grid) .card-store-row.has-recent-drop-badge {
  grid-template-columns: minmax(0, 1fr) max-content max-content !important;
  column-gap: 4px !important;
}
.recent-drop-store-identity {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}
.recent-drop-store-identity .store-brand--auchan {
  --auchan-logo-width: 46px;
  flex-shrink: 1;
  min-width: 0;
}
body .recent-drop-store-identity .store-brand--auchan .auchan-wordmark {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.recent-drop-store-identity .store-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recent-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
  border-radius: 4px;
  padding: 1px 3px;
  background: #e1f6e8;
  color: #08753c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.recent-drop-badge svg {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

/* Basket store offer: intrinsic logo column, then a real 5px gap to the total. */
body .basket-section .basket-network-card {
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) !important;
  grid-template-rows: 14px minmax(24px, auto) 13px 13px !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 74px !important;
  padding: 4px 5px !important;
  column-gap: 5px !important;
}

body .basket-section .basket-network-card > .basket-network-logo {
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: center !important;
  min-width: 0;
  max-width: 100%;
}

body .basket-section .basket-network-card > .basket-network-logo.store-brand--auchan {
  width: var(--auchan-logo-width, 52px) !important;
  height: var(--auchan-logo-height, 16px) !important;
  min-width: 0;
}

body .basket-section .basket-network-card > .store-brand--auchan .auchan-wordmark {
  width: 100%;
  max-width: 100%;
  height: auto;
}

body .basket-section .basket-network-card > strong {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

/* Only unusually long totals need a taller row; keep the normal compact height. */
body .basket-section .basket-network-scroll {
  height: auto !important;
  min-height: 76px;
}

body .basket-section .basket-networks {
  height: auto;
  min-height: 126px;
  flex: 0 0 auto;
}

@media (max-width: 796px) {
  body .basket-section .basket-networks { min-height: 137px; }
}
/* White image canvas only in public catalog grids; modal/detail media keep their styles. */
:is(#productGrid, .test-home-section-grid) .product-media,
:is(#productGrid, .test-home-section-grid) .product-photo {
  background: #ffffff !important;
}

/* Product photographs only: keep missing-image/category-icon placeholders. */
body :is(
  img.product-photo, img.basket-photo, img.basket-row-photo,
  .search-suggestion > img, .basket-watch-row > img,
  .shared-list-row__product > img, .shared-item-heading > img,
  .shared-replacement-comparison img, .saved-list-detail-item > img,
  .saved-list-replacement-proposal > img, .saved-list-replacement-picker__option img,
  .saved-list-replacement-picker__original img, .shared-completion-summary img
):not(.is-fallback):not(.is-missing):where([src]:not([src=""]):not([src*="category-icons/"]):not([src*="placeholder"]):not([hidden])) {
  background: #ffffff !important;
}
body .product-media:has(img.product-photo:not(.is-fallback):not(.is-missing):where([src]:not([src=""]):not([src*="category-icons/"]):not([src*="placeholder"]):not([hidden]))),
body .basket-row-photo-frame:has(img.basket-row-photo:not(.is-fallback):not(.is-missing):where([src]:not([src=""]):not([src*="category-icons/"]):not([src*="placeholder"]):not([hidden]))) {
  background: #ffffff !important;
}
