@layer foundation {
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/onest-3cbee1c6.woff2") format("woff2");
}

/* Metric-matched stand-in while Onest loads, so text does not jump when it swaps in. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial");
  size-adjust: 104.5%;
  ascent-override: 92.8%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}

:root {
  --ink: #202220;
  --ink-soft: #5f6b64;
  --muted: #657169;
  --faint: #929a94;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --accent: #2459e8;
  --accent-dark: #1742bd;
  --accent-soft: #e9efff;
  /* «Акция» from the price list: badge fill, and price text on paper (both ≥ 4.5:1). */
  --promo: #d42a35;
  --promo-ink: #c8232d;
  --line: #e9e9e6;
  --night: #1c2521;
  --display: "Onest", "Onest Fallback", Arial, sans-serif;
  --body: "Onest", "Onest Fallback", Arial, sans-serif;
  --type-body: 16px;
  --type-hero: clamp(3.8rem, 5.28vw, 4.75rem);
  --type-section: 33px;
  --type-card: 17px;
  --type-meta: 12px;
  --type-small: var(--type-meta);
  --type-price: 21px;
  --type-action: 12px;
  --section-gap: 56px;
  --storefront-anchor-offset: 100px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--storefront-anchor-offset);
  scrollbar-gutter: stable;
  /* iOS Safari otherwise enlarges text when a phone turns to landscape. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: var(--type-body)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headlines use Onest's single-storey "a" (ss02), the letterform of the FORMA
   wordmark; running text keeps the double-storey "a" for legibility. Product names
   opt in from product_cards.css. */
h1,
h2,
h3 {
  font-feature-settings: "ss02";
}

html.panel-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.panel-is-open {
  overscroll-behavior: none;
}

::selection {
  background: #cddaff;
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #c4ccc5;
  border: 3px solid var(--paper);
  border-radius: 99px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #7a9aff;
  outline-offset: 4px;
}

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

i {
  display: inline-flex;
  flex: 0 0 auto;
  font-style: normal;
}

i[data-lucide] {
  width: 20px;
  height: 20px;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
}

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

.wrap {
  width: min(1320px, calc(100% - 72px));
  margin-right: auto;
  margin-left: auto;
}

.service-bar {
  background: var(--paper);
  color: #6a6d69;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.service-bar .wrap {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-bar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6a6d69;
  font-weight: 700;
}

.service-bar a svg {
  width: 15px;
  height: 15px;
}

header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(228 233 228 / 86%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(18px);
}

.header {
  display: flex;
  height: 86px;
  align-items: center;
  gap: 72px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;

  /* Центр тела лого (orma) ниже центра SVG — над ним флажок `f`. */
  transform: translateY(-4px);
}

.logo-image {
  display: block;
  width: auto;
  height: 29px;
}

.header nav {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-1px);
}

.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.25;
}

.header nav a,
.footer-main a,
.footer-link {
  transition: color 180ms var(--ease);
}

.header nav a:hover,
.header nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 3px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.icon-btn:hover {
  background: var(--paper);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn b {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.icon-btn b[hidden] {
  display: none;
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  min-height: 630px;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: stretch;
  gap: clamp(30px, 5vw, 76px);
  padding-top: 46px;
  padding-bottom: 46px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 0 28px;
}

h1 {
  max-width: none;
  margin: 0 0 19px;
  color: var(--ink);
  font-size: var(--type-hero);
  font-weight: 550;
  letter-spacing: -4px;
  line-height: 1.05;
}

.hero-context {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-copy > p:not(.hero-context) {
  max-width: 35ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 19px 0 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.button svg {
  width: 18px;
  height: 18px;
}

/* Hover deepens the colour and shadow in place; only a press moves the button, so the
   target never slides out from under the pointer. */
.button:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgb(36 89 232 / 22%);
}

.button:active {
  transform: scale(0.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 11px;
}

.hero-note-icon,
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #707770;
}

.hero-note-icon {
  width: 22px;
  height: 22px;
}

.hero-note-icon svg {
  width: 15px;
  height: 15px;
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 535px;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: #f1f0ec;
  box-shadow: 0 20px 58px rgb(28 36 32 / 7%);
}

.hero-visual::before {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgb(28 36 32 / 8%);
  border-radius: 50%;
  content: "";
}

.hero-word {
  position: absolute;
  top: -0.06em;
  right: -0.05em;
  color: #e3e1da;
  font-family: var(--display);
  font-size: clamp(11rem, 20vw, 18rem);
  font-weight: 750;
  letter-spacing: -0.11em;
  line-height: 1;
  pointer-events: none;
}

.hero-visual > img {
  position: relative;
  z-index: 1;
  width: 84%;
  height: 455px;
  margin-bottom: 36px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 18px rgb(78 67 49 / 10%));
  animation: hero-arrival 800ms var(--ease) both;
}

@keyframes hero-arrival {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-caption span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.hero-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.round-btn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.round-btn:hover {
  background: var(--surface);
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advantages > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}

.advantage-icon {
  width: 25px;
  height: 25px;
}

.advantage-icon svg {
  width: 21px;
  height: 21px;
}

.section {
  padding-top: 112px;
}

.section + .section {
  padding-top: 132px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--type-section);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-lede {
  max-width: 44ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#popular .section-heading h2 {
  max-width: none;
}

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

.categories-viewport {
  position: relative;
  min-width: 0;
}

.categories-viewport::after {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 76px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), var(--surface) 78%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease);
}

.categories-viewport.is-scrollable::after {
  opacity: 1;
}

.categories-scroll-hint {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-50%);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.categories-scroll-hint:hover,
.categories-scroll-hint:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.categories-scroll-hint svg {
  width: 17px;
  height: 17px;
}

.category {
  min-width: 0;
  padding: 20px 8px 17px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
  transition: box-shadow 180ms var(--ease), color 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .category:hover,
  .category:focus-visible {
    box-shadow: inset 0 0 0 1px #b8c9f5;
    color: var(--accent);
  }
}

.category-media {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

/* Built-in category pictures are transparent. Only an uploaded one may carry a white
   background to melt into the tile; blending a transparent picture buys nothing and
   makes it shimmer whenever the page repaints. */
.category img {
  width: 100%;
  height: 110px;
  margin: 0 auto 10px;
}

.category img.category-image--blend {
  mix-blend-mode: multiply;
}

.category-foot {
  display: block;
  padding: 0;
}

.category h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.category p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.35;
}

.category-arrow {
  display: none;
}

.category-arrow svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .category:hover .category-arrow,
  .category:focus-visible .category-arrow {
    background: var(--accent);
    color: #fff;
    transform: rotate(8deg);
  }
}

.filter-pills {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--paper);
}

.filter-pills [data-filter] {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  background: transparent;
  color: #59665e;
  font-size: var(--type-meta);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.filter-pills [data-filter]:hover {
  color: var(--ink);
}

.filter-pills [data-filter]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.filter-pills [data-filter].active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 10px rgb(28 36 32 / 10%);
}

.brand-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -12px 0 26px;
}

.brand-filter-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.brand-pill:hover,
.brand-pill:focus-visible {
  border-color: #afc0f3;
  color: var(--accent);
}

.brand-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.product-taxonomy {
  min-height: 15px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.product-taxonomy span {
  padding: 0 4px;
  color: var(--faint);
}

.stock {
  display: block;
  margin-top: 5px;
  color: #4f7759;
  font-size: 10px;
  font-weight: 650;
}

.add-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px 0 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  font-size: var(--type-action);
  font-weight: 750;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.add-button svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .add-button:hover,
  .add-button:focus-visible {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgb(36 89 232 / 16%);
  }

  .add-button:hover svg,
  .add-button:focus-visible svg {
    transform: translateX(2px);
  }
}

.promo {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 132px;
  overflow: hidden;
  border-radius: 15px;
  background: #eef0f3;
}

.promo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 58px 58px 58px 62px;
}

.promo h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 4vw, 3.25rem);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.07;
}

.promo-kicker {
  margin: 22px 0 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.promo-copy > p:not(.promo-kicker) {
  max-width: 34ch;
  margin: 17px 0 26px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.button.dark {
  background: var(--night);
}

.button.dark:hover {
  background: #304039;
  box-shadow: 0 12px 26px rgb(28 37 33 / 18%);
}

.promo-image {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.promo-image::before {
  display: none;
}

.promo-image img {
  position: relative;
  z-index: 1;
  width: 91%;
  height: 350px;
  mix-blend-mode: multiply;
  transform: rotate(-5deg);
  transition: transform 500ms var(--ease);
}

.promo:hover .promo-image img {
  transform: rotate(-3deg) scale(1.03);
}

.promo-image > span {
  position: absolute;
  right: 27px;
  bottom: 24px;
  left: 27px;
  color: #4f627c;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
}

.services {
  margin-top: 132px;
  padding: 0 0 80px;
  background: transparent;
  color: var(--ink);
}

.services .section-heading {
  margin-bottom: 40px;
}

.services .section-heading h2 {
  color: var(--ink);
}

.services .section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.service-grid article {
  min-width: 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.service-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-grid h3 {
  margin: 19px 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.service-grid p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.service-arrow {
  display: none;
}

footer {
  margin-top: 132px;
  background: var(--paper);
  color: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
  gap: 35px;
  padding: 58px 0;
}

footer .logo {
  color: var(--ink);
}

footer h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

footer .footer-main > div > a:not(.logo),
.footer-link,
.footer-small {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-main a:not(.logo):hover,
.footer-link:hover {
  color: var(--accent);
}

.footer-link {
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  text-align: left;
}

.footer-main .footer-link {
  display: inline-flex;
}

.footer-nav {
  display: grid;
  gap: 2px;
}

.footer-nav a,
.footer-main .footer-contact > a {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-contact > .footer-small {
  margin: 12px 0 0;
  font-size: 11px;
}

.footer-link svg {
  width: 14px;
  height: 14px;
}

.mobile-menu-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 650;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 18px;
  border-top: 1px solid #e2e4df;
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom .footer-link {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.empty {
  padding: 48px;
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(620px, calc(100% - 30px));
  max-height: 85vh;
  padding: 30px;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 100px rgb(0 0 0 / 23%);
}

dialog[data-panel="search"] {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

dialog[data-panel="search"] #panel-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: visible;
}

dialog[data-panel="search"] .search-results {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

dialog::backdrop {
  background: rgb(21 28 36 / 46%);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.dialog-head .icon-btn {
  background: var(--paper);
}

.dialog-head .icon-btn svg {
  width: 18px;
  height: 18px;
}

input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}

input::placeholder {
  color: var(--faint);
}

.search-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.search-results {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.search-result {
  align-items: center;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-more {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

.search-more .button {
  min-height: 44px;
  padding-inline: 20px;
}

.search-result .basket-item-price.is-promo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--promo-ink);
}

.search-result-promo {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--promo);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.search-result-old-price {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.search-result .product-name {
  display: inline-block;
}

.search-result mark {
  padding: 0 1px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: inherit;
  font-weight: 600;
}

.search-swatches {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.search-swatches .color-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.search-result > .basket-item-price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.basket-item img {
  width: 78px;
  height: 80px;
  border-radius: 10px;
  background: var(--paper);
}

.basket-item .product-image-placeholder {
  display: inline-flex;
  width: 78px;
  height: 80px;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
}

.basket-item .product-image-placeholder svg {
  width: 17px;
  height: 17px;
}

.basket-item > div {
  min-width: 0;
  flex: 1;
}

.basket-item h3 {
  margin: 0;
  font-size: 15px;
}

.basket-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.basket-item--unavailable .product-name {
  color: var(--muted);
}

.basket-item-price {
  display: block;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.basket-item .quantity {
  margin-top: 10px;
}

.basket-item > .icon-btn {
  min-width: 38px;
  min-height: 38px;
  color: var(--muted);
}

.basket-item > .icon-btn:hover {
  color: #bd4f58;
}

.basket-item > .icon-btn svg {
  width: 17px;
  height: 17px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quantity button {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--paper);
}

.quantity button svg {
  width: 14px;
  height: 14px;
}

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 750;
}

.panel-secondary-link {
  display: block;
  margin-top: 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.commerce-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.commerce-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent);
}

.wide {
  width: 100%;
}

.detail-img {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background: var(--paper);
  object-fit: contain;
}

.detail-meta {
  color: var(--muted);
}

.detail-price {
  margin: 20px 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.variant-choices {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
}

.variant-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.variant-choice:hover,
.variant-choice:focus-visible {
  border-color: #afc0f3;
  background: var(--accent-soft);
}

.variant-choice span:not(.variant-swatch) {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-choice strong {
  font-family: var(--display);
  font-size: 13px;
  white-space: nowrap;
}

.variant-choice svg {
  width: 16px;
  height: 16px;
}

.variant-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgb(32 34 32 / 14%);
  border-radius: 50%;
}

.demo-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  max-width: 90vw;
  padding: 13px 24px;
  border-radius: 11px;
  background: var(--night);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1500px) {
  .hero {
    min-height: 650px;
  }

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

  .hero-visual > img {
    height: 475px;
  }
}

@media (max-width: 1100px) {
  :root {
    --type-hero: clamp(3rem, 5.6vw, 3.875rem);
    --type-section: 29px;
    --type-card: 15px;
    --type-price: 18px;
  }

  .wrap {
    width: calc(100% - 56px);
  }

  .header {
    gap: 42px;
  }

  .hero {
    min-height: 570px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
  }

  h1 {
    font-size: var(--type-hero);
  }

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

  .hero-visual > img {
    height: 390px;
  }

  .hero-word {
    font-size: 13rem;
  }

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

  .category-media {
    min-height: 190px;
  }

  .category img {
    height: 155px;
  }

  .add-button {
    padding-right: 10px;
    padding-left: 11px;
  }

  .promo-copy {
    padding-right: 38px;
    padding-left: 42px;
  }

  .services {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --type-hero: clamp(44px, 14vw, 57px);
    --type-section: 26px;
    --type-card: 13px;
    --type-meta: 12px;
    --type-price: 17px;
    --type-action: 12px;
    --section-gap: 36px;
    --storefront-anchor-offset: 80px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .service-bar .wrap {
    min-height: 31px;
    justify-content: center;
    font-size: 9px;
    text-align: center;
  }

  .service-bar a {
    display: none;
  }

  .header {
    height: 72px;
    gap: 18px;
  }

  .logo-image {
    height: 26px;
  }

  .header nav {
    display: none;
  }

  .header-tools {
    gap: 1px;
  }

  .icon-btn {
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
  }

  .header-tools .icon-btn:nth-child(2) {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 29px;
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .hero-copy {
    padding: 0 2px;
  }

  h1 {
    max-width: none;
    margin-bottom: 17px;
    font-size: var(--type-hero);
    letter-spacing: -2.8px;
  }

  .hero-context {
    margin-bottom: 17px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero-copy > p:not(.hero-context) {
    max-width: 31ch;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 25px;
  }

  .button {
    min-height: 48px;
    padding-left: 18px;
    font-size: 12px;
  }

  .text-link {
    font-size: 12px;
  }

  .hero-note {
    margin-top: 25px;
    font-size: 10px;
  }

  .hero-note-icon {
    width: 25px;
    height: 25px;
  }

  .hero-visual {
    min-height: 390px;
    border-radius: 20px;
  }

  .hero-visual > img {
    width: 85%;
    height: 315px;
    margin-bottom: 17px;
  }

  .hero-word {
    top: -0.02em;
    font-size: 10.5rem;
  }

  .hero-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 0;
  }

  .hero-caption span {
    font-size: 8px;
  }

  .hero-caption strong {
    font-size: 16px;
  }

  .round-btn {
    width: 41px;
    height: 41px;
  }

  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 10px;
    padding: 21px 0 22px;
  }

  .advantages > div {
    gap: 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  .advantage-icon {
    width: 30px;
    height: 30px;
  }

  .advantage-icon svg {
    width: 15px;
    height: 15px;
  }

  .section {
    padding-top: 48px;
  }

  .section + .section {
    padding-top: 48px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    max-width: 15ch;
    font-size: var(--type-section);
  }

  .section-lede {
    max-width: 35ch;
    margin-top: 13px;
    font-size: 12px;
  }

  #categories .section-heading > .text-link {
    margin-top: 18px;
  }

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

  .category {
    padding: 14px 4px 12px;
    border-radius: 14px;
  }

  .category-media {
    min-height: 65px;
  }

  .category img {
    height: 65px;
    margin-bottom: 7px;
  }

  .category-foot {
    padding: 0;
  }

  .category h3 {
    font-size: 11px;
  }

  .category p {
    display: none;
  }

  .category-arrow {
    width: 29px;
    height: 29px;
  }

  .category-arrow svg {
    width: 14px;
    height: 14px;
  }

  #popular .section-heading {
    display: block;
  }

  #popular h2 {
    max-width: 12ch;
  }

  .filter-pills {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
  }

  .filter-pills [data-filter] {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 11px;
    font-size: var(--type-action);
  }

  .brand-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: -8px;
  }

  .brand-pills {
    width: 100%;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .brand-pill {
    flex: 0 0 auto;
  }

  .stock {
    margin-top: 4px;
    font-size: 9px;
  }

  .add-button {
    min-height: 34px;
    gap: 6px;
    padding: 0 8px 0 10px;
    font-size: var(--type-action);
  }

  .add-button svg {
    width: 13px;
    height: 13px;
  }

  .promo {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 88px;
    border-radius: 15px;
  }

  .promo-copy {
    padding: 31px 28px 0;
  }

  .promo h2 {
    font-size: 2.75rem;
  }

  .promo-kicker {
    margin-top: 17px;
    font-size: 9px;
  }

  .promo-copy > p:not(.promo-kicker) {
    margin-top: 13px;
    margin-bottom: 22px;
    font-size: 11px;
  }

  .promo-image {
    min-height: 270px;
  }

  .promo-image img {
    height: 230px;
  }

  .promo-image > span {
    right: 15px;
    bottom: 15px;
    left: 15px;
    font-size: 9px;
  }

  .services {
    margin-top: 88px;
    padding: 0 0 46px;
    border-radius: 0;
  }

  .services .section-heading {
    margin-bottom: 31px;
  }

  .services .section-heading > p {
    margin-top: 16px;
    font-size: 12px;
  }

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

  .service-grid article {
    padding: 18px 0 19px;
  }

  .service-icon {
    width: 27px;
    height: 27px;
    border-radius: 0;
  }

  .service-icon svg {
    width: 17px;
    height: 17px;
  }

  .service-grid h3 {
    margin-top: 19px;
    font-size: 13px;
  }

  .service-grid p {
    font-size: 10px;
  }

  footer {
    margin-top: 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    padding: 37px 0;
  }

  .footer-main > div:nth-child(2) {
    order: 3;
  }

  .footer-main > div:nth-child(3) {
    order: 4;
  }

  .footer-catalog,
  .footer-buyers {
    order: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav a,
  .footer-main .footer-contact > a {
    min-height: 40px;
    font-size: 11px;
  }

  .footer-main .footer-contact {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .footer-main .footer-contact > h3,
  .footer-main .footer-contact > .footer-small {
    grid-column: 1 / -1;
  }

  .footer-main .footer-contact > h3 {
    margin-bottom: 6px;
  }

  .footer-main .footer-contact > .footer-small {
    margin-top: 8px;
    font-size: 10px;
  }

  footer .footer-main > div > a:not(.logo),
  .footer-link,
  .footer-small {
    font-size: 11px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 9px;
  }

  .footer-bottom > span:nth-child(2) {
    width: 100%;
    order: 3;
  }

  .footer-bottom .footer-link {
    margin-left: auto;
    font-size: 9px;
  }

  .footer-bottom {
    display: grid;
    grid-template-areas: "copyright privacy";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 20px;
    align-items: center;
    padding: 16px 0 max(24px, env(safe-area-inset-bottom));
    font-size: 9px;
  }

  .footer-copyright {
    grid-area: copyright;
  }

  .footer-bottom .footer-link {
    grid-area: privacy;
    margin: 0;
  }

  dialog {
    padding: 21px;
  }

  /* Cart, favourites and the menu open as a sheet from the bottom edge, where the
     thumb already is. The title row and the checkout block stay pinned while the
     list scrolls between them. Search keeps its own placement (syncPanelViewport). */
  dialog:not([data-panel="search"]) {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(var(--panel-viewport-height, 100dvh) - 48px);
    margin: 0;
    padding: 0 20px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 60px rgb(0 0 0 / 18%);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  dialog:not([data-panel="search"]) .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -20px 4px;
    padding: 18px 20px 12px;
    background: var(--surface);
  }

  /* The handle says the sheet can be pulled down (panel_controller.js closes it). */
  dialog:not([data-panel="search"]) .dialog-head::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 5px;
    margin-left: -18px;
    border-radius: 99px;
    background: #d6dad7;
    content: "";
  }

  /* While the sheet is pulled down the page behind it brightens with it. */
  dialog:not([data-panel="search"])::backdrop {
    opacity: calc(1 - var(--sheet-drag-progress, 0));
  }

  dialog:not([data-panel="search"]) #panel-content {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .panel-checkout {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -20px;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .panel-checkout .total {
    margin: 0 0 12px;
    font-size: 19px;
  }

  .panel-checkout .button {
    min-height: 52px;
  }

  .basket-item .quantity {
    gap: 10px;
  }

  .basket-item .quantity button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .basket-item > .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu-link {
    min-height: 54px;
    align-items: center;
    padding: 0;
    background: transparent;
    font-size: 18px;
    text-align: left;
  }

  .mobile-menu-link:active {
    color: var(--accent);
  }

  .mobile-menu-link svg {
    width: 18px;
    height: 18px;
    color: var(--faint);
  }

  .mobile-menu-service {
    display: grid;
    margin-top: 18px;
    padding: 6px 0 0;
  }

  .mobile-menu-service-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
  }

  .mobile-menu-service-link svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
  }

  @media (prefers-reduced-motion: no-preference) {
    dialog[open]:not([data-panel="search"]) {
      animation: panel-sheet-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    dialog[open]::backdrop {
      animation: panel-backdrop-in 240ms ease-out;
    }
  }

  dialog[data-panel="search"] {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: calc(100% - 24px);
    height: min(720px, calc(var(--panel-viewport-height, 100dvh) - 24px));
    max-height: calc(var(--panel-viewport-height, 100dvh) - 24px);
    margin: 0;
    padding: 20px;
    border-radius: 24px;
  }

  dialog[data-panel="search"] .search-results {
    scrollbar-width: thin;
  }

  dialog[data-panel="search"] .search-result {
    gap: 12px;
    padding: 12px 0;
  }

  dialog[data-panel="search"] .search-result > .basket-item-price {
    font-size: 14px;
  }

  .dialog-head h2 {
    font-size: 22px;
  }

  .basket-item {
    gap: 11px;
  }

  .basket-item img {
    width: 62px;
    height: 64px;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-note {
    margin-top: 22px;
  }

  .add-button {
    padding-right: 7px;
    padding-left: 8px;
  }
}

@media (hover: none), (pointer: coarse) {
  .button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .add-button:hover svg,
  .add-button:focus-visible svg {
    transform: none;
  }
}

/* Product pages */

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.breadcrumbs i[data-lucide] {
  width: 13px;
  height: 13px;
}

.breadcrumbs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-stage-mark {
  position: absolute;
  right: 22px;
  bottom: 19px;
  z-index: 2;
  color: #a6aaa6;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
}

.product-price-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumbs a:hover {
    color: var(--accent);
  }

  }

.product-cart-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.product-cart-note svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.product-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 80px;
  align-items: start;
  margin-top: 112px;
  padding: 0 0 112px;
}

.product-about h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.15rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.03;
}

.product-about > div:first-child p {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-selected-summary {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.product-selected-summary > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-selected-summary strong {
  display: block;
  margin-top: 13px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.product-selected-summary p {
  max-width: 37ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.related-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.related-product-image {
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.related-product-image img {
  width: 86%;
  height: 86%;
  mix-blend-mode: multiply;
  transition: transform 300ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .related-product:hover .related-product-image img {
    transform: scale(1.04);
  }
}

.related-product strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product > span:not(.related-product-image) {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product b {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.04em;
}

@media (max-width: 760px) {

  .breadcrumbs {
    gap: 6px;
    font-size: 10px;
  }

  .product-stage-mark {
    right: 14px;
    bottom: 13px;
    font-size: 8px;
  }

  .product-about {
    display: block;
    margin-top: 78px;
    padding-bottom: 78px;
  }

  .product-about h2 {
    font-size: 2.35rem;
  }

  .product-about > div:first-child p {
    margin-top: 15px;
    font-size: 12px;
  }

  .product-selected-summary {
    margin-top: 43px;
  }

  .related-product-image {
    height: 170px;
  }

  .related-product strong {
    font-size: 12px;
  }

  .related-product b {
    font-size: 15px;
  }
}

/* Product detail presentation */
.header-search {
  display: flex;
  width: 244px;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.header-search:hover,
.header-search:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.header-search svg {
  width: 15px;
  height: 15px;
}

.product-stage-mark {
  display: none;
}

.product-stage-expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: 0 8px 20px rgb(32 34 32 / 10%);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.product-stage-expand:hover,
.product-stage-expand:focus-visible {
  background: var(--accent);
  color: #fff;
}

.product-stage-expand svg {
  width: 15px;
  height: 15px;
}

.product-cart-note {
  margin-top: 9px;
  font-size: 9px;
}

.product-specifications-note {
  color: var(--muted);
  font-size: 10px;
}

.related-product {
  gap: 0;
}

.related-product-visual {
  position: relative;
}

.related-product-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.related-product-image {
  height: 175px;
  margin-bottom: 8px;
  border-radius: 11px;
}

.related-product strong {
  font-size: 13px;
}

.related-product-link > span:not(.related-product-image) {
  overflow: hidden;
  font-size: 10px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-product-description {
  display: -webkit-box;
  min-height: 28px;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--ink-soft);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.related-favorite:hover,
.related-favorite.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.related-favorite svg {
  width: 14px;
  height: 14px;
}

.related-product-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.related-product-purchase b {
  margin: 0;
  font-size: 15px;
}

.related-add {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 750;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.related-add:hover,
.related-add:focus-visible {
  background: var(--accent);
  color: #fff;
}

.related-add svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1100px) {
  .header-search {
    width: 190px;
  }

  }

@media (max-width: 760px) {

  .related-product-image {
    height: 144px;
  }

  .related-product-purchase {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-favorite {
    width: 44px;
    height: 44px;
  }
}

}

@keyframes panel-sheet-in {
  from {
    transform: translateY(100%);
  }
}

@keyframes panel-backdrop-in {
  from {
    opacity: 0;
  }
}
