@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body:has(#categoryShowcase) {
  --catalog-font: "Golos Text", system-ui, sans-serif;
  --catalog-ink: #24272c;
  --catalog-muted: #535d68;
  --catalog-line: #e1e4e8;
  --catalog-surface: #f4f5f7;
  --catalog-focus: #516381;
  font-family: var(--catalog-font);
}

body:has(#categoryShowcase) :is(
  .store-search, .store-search input, .store-search button, .store-identity, .store-identity h1,
  .category-showcase, .category-showcase__filters button, .sidebar, #categoryButtons button,
  .shop-actions, .buy-quantity, .buy-stepper input
) {
  font-family: var(--catalog-font);
}

.store-search form { border-color: var(--catalog-line); }
.store-search form:focus-within {
  border-color: var(--catalog-focus);
  box-shadow: 0 0 0 2px #51638122;
}
.store-search input::placeholder { color: #626c77; }
.store-search button { background: var(--catalog-ink); }

.category-showcase__heading {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 18px;
}
.category-showcase__heading h2 {
  color: var(--catalog-ink);
  font-size: clamp(22px, 5.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.035em;
}
#categoryShowcaseCount {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--catalog-surface);
  color: var(--catalog-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.category-showcase__filters { gap: 8px; }
.category-showcase__filters button {
  padding: 10px 16px;
  border: 1px solid var(--catalog-line);
  border-radius: 10px;
  background: var(--catalog-surface);
  color: var(--catalog-ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.category-showcase__filters button:hover { border-color: #afb5bd; }
.category-showcase__filters button[aria-pressed="true"] {
  border-color: var(--catalog-ink);
  background: var(--catalog-ink);
  color: #fff;
}
.category-showcase__track .category-showcase__tile {
  padding: 0;
  border-radius: 17px;
  background: #fff;
  color: var(--catalog-ink);
}
.category-showcase__tile[aria-current="true"] {
  border-color: #aab2bf;
  background: var(--catalog-surface);
}
.category-showcase__tile:active {
  background: var(--catalog-surface);
  box-shadow: inset 0 0 0 2px #aab2bf;
}
.category-showcase__name {
  text-align: center;
  border-color: var(--catalog-line);
  color: var(--catalog-ink);
  font-weight: 600;
}
@media (hover: hover) {
  .category-showcase__tile:hover { border-color: #bdc4cd; }
}
#categoryButtons .category-link:hover { background: var(--catalog-surface); }
#categoryButtons .category-link.active {
  background: var(--catalog-ink);
  color: #fff;
}
#categoryButtons .category-link.active .category-count { color: #e3e7ed; }
#categoryButtons .category-parent-row:has(.active) {
  background: var(--catalog-ink);
  border-color: var(--catalog-ink);
}
#categoryButtons .category-toggle:hover { background: var(--catalog-surface); }
#categoryButtons .category-parent-row:has(.active) .category-toggle { color: #fff; }
#categoryButtons .category-parent-row:has(.active) .category-toggle:hover { background: #3e434a; }

body:has(#categoryShowcase) .shop-actions a { padding: 12px 16px; border-radius: 12px; }
body:has(#categoryShowcase) .shop-actions :is(a:hover, a.current) {
  background: #e9ecf0;
  color: var(--catalog-ink);
}
body:has(#categoryShowcase) .shop-actions .action-badge {
  background: var(--catalog-ink);
  color: #fff;
}

.catalog .preview-note { color: var(--catalog-muted); }
body:has(#categoryShowcase) #catalog { padding-bottom: clamp(28px, 4vw, 52px); }

#wholesale {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(20px, 3.2vw, 44px);
  margin: 0 auto clamp(24px, 4vw, 50px);
  border-radius: 18px;
  background: var(--catalog-ink);
  color: #fff;
}
#wholesale h2,
#pickup h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.03em;
}
#wholesale p {
  margin: 9px 0 0;
  color: #e1e5eb;
  font-size: 15px;
  line-height: 1.55;
}
#wholesale .wholesale-note {
  color: #c2cbd6;
  font-size: 13px;
}
.wholesale-steps {
  padding-left: clamp(20px, 4vw, 48px);
  border-left: 1px solid #ffffff30;
}
.wholesale-link,
#pickup .pickup-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.wholesale-link {
  justify-content: center;
  padding: 10px 14px;
  margin-top: 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--catalog-ink);
}
.wholesale-link:hover { background: #e9ecf0; }

#pickup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0 auto clamp(18px, 3vw, 34px);
}
#pickup h2 { grid-column: 1 / -1; margin-bottom: 3px; color: var(--catalog-ink); }
#pickup .delivery-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid var(--catalog-line);
  border-radius: 16px;
  padding: clamp(17px, 2.3vw, 28px);
  background: var(--catalog-surface);
  color: var(--catalog-ink);
}
.delivery-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.delivery-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  border: 1px solid var(--catalog-line);
  border-radius: 10px;
  background: #fff;
}
.delivery-card__icon svg { width: 20px; height: 20px; }
#pickup h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
#pickup .delivery-card p { margin: 0; font-size: 15px; line-height: 1.5; }
#pickup p.delivery-card__note { margin-top: 4px; color: var(--catalog-muted); font-size: 13px; }
#pickup .pickup-link { text-decoration: underline; text-underline-offset: 3px; margin-bottom: -9px; }
#pickup .pickup-link:hover { color: var(--catalog-focus); }

/* Works with the server-generated product links and the native details control. */
#pickup + section > details {
  border: 1px solid var(--catalog-line);
  border-radius: 13px;
  color: var(--catalog-ink);
}
#pickup + section > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 11px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
#pickup + section > details > summary::-webkit-details-marker { display: none; }
#pickup + section > details > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
#pickup + section > details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
#pickup + section > details > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  max-height: 46vh;
  margin: 0;
  padding: 8px 12px;
  overflow: auto;
  border-top: 1px solid var(--catalog-line);
  list-style: none;
}
#pickup + section > details > ul a {
  display: block;
  padding: 9px 5px;
  border-radius: 6px;
  color: var(--catalog-ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#pickup + section > details > ul a:hover { background: var(--catalog-surface); }

body:has(#categoryShowcase) :is(
  .category-showcase button, .category-showcase__tile, .store-search button, #categoryButtons button,
  .shop-actions a, .wholesale-link, .pickup-link, #pickup + section details :is(summary, a)
):focus-visible {
  outline: 2px solid var(--catalog-focus);
  outline-offset: 2px;
}
#wholesale .wholesale-link:focus-visible { outline-color: #fff; }

@media (max-width: 700px) {
  #wholesale, #pickup, #pickup + section > details > ul { grid-template-columns: minmax(0, 1fr); }
  #wholesale { gap: 14px; }
  .wholesale-steps { padding: 11px 0 0; border-left: 0; border-top: 1px solid #ffffff30; }
  .wholesale-steps p:first-child { margin-top: 0; }
  #pickup .delivery-card, .category-showcase__track .category-showcase__tile { border-radius: 13px; }
  body:has(#categoryShowcase) .shop-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  body:has(#categoryShowcase) .shop-actions a { justify-content: center; padding: 5px 2px; border-radius: 10px; }
}
@media (max-width: 520px) {
  .category-showcase__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 17px; }
  .category-showcase__filters button { padding: 8px 6px; font-size: 12px; }
}
/* Keep desktop category tiles compact and proportional. */
@media(min-width:701px){
 .category-showcase{max-width:1440px;margin-inline:auto}
 .category-showcase__track .category-showcase__picture{width:100%;aspect-ratio:1;flex-shrink:0}
 .category-showcase__track .category-showcase__tile img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain}
 .category-showcase__track .category-showcase__name{display:flex;align-items:center;justify-content:center;min-height:68px;padding:12px 6px;text-align:center;font-size:15px;line-height:1.4}
}
@media(min-width:1001px){.category-showcase__track{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}}
@media(min-width:1200px){.category-showcase__track{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1500px){.category-showcase__track{grid-template-columns:repeat(6,minmax(0,1fr))}}
