/* RSG base layer — reset, typography, and the shared chrome (topbar, footer,
   buttons, dialog, forms). Pairs with tokens.css; page files extend it. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 640;
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  /* Without this, the height="" attribute survives when max-width shrinks
     the width, and every attributed image is distorted. */
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:where([hidden]) {
  display: none !important;
}

::selection {
  background: var(--brand-tint);
}

/* ---------------------------------------------------------------- utilities */

.rsg-shell {
  width: min(100% - (var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

.rsg-shell--wide {
  width: min(100% - (var(--gutter) * 2), var(--measure-wide));
}

.rsg-section {
  padding-block: var(--section-y);
}

.rsg-eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
}

.rsg-lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 62ch;
}

.rsg-balance {
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: var(--space-4);
  inset-block-start: var(--space-3);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

main {
  scroll-margin-top: calc(var(--topbar-h) + var(--space-4));
}

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn:hover {
  --btn-bg: var(--brand-hover);
}

.btn:active {
  transform: scale(0.97);
}

.btn.small {
  min-height: 38px;
  padding-inline: var(--space-4);
  font-size: var(--text-xs);
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.btn.ghost:hover {
  --btn-bg: var(--surface-muted);
}

.btn.light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn.light:hover {
  --btn-bg: #f2f2f4;
}

.btn.on-dark {
  --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.24);
}

.btn.on-dark:hover {
  --btn-bg: rgba(245, 245, 247, 0.1);
}

.btn.quiet {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  min-height: 0;
  padding: 0;
}

.btn.quiet:hover {
  --btn-bg: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ------------------------------------------------------------- top banner */

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--topbar-h);
  padding-inline: var(--gutter);
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-soft),
    background var(--dur-base) var(--ease-soft);
}

.topbar.is-stuck {
  border-bottom-color: var(--hairline-soft);
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}

.brand-logo {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

.topbar .brand > span {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  font-weight: 680;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.topbar .brand > span small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline: auto;
}

.topbar nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

.topbar nav a:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.topbar nav a.active,
.topbar nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 620;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}

.nav-actions select {
  height: 38px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 960px) {
  .topbar nav {
    display: none;
  }
  .topbar nav.open {
    position: absolute;
    inset-inline: 0;
    inset-block-start: var(--topbar-h);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    margin: 0;
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: rgba(251, 251, 253, 0.96);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow-md);
  }
  .topbar nav.open a {
    padding: var(--space-3);
    font-size: var(--text-base);
  }
  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-actions .btn {
    display: none;
  }
}

/* ---------------------------------------------------------------- reveal */

.rsg-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.rsg-reveal--panel {
  transform: translate3d(0, 26px, 0) scale(0.985);
}

.rsg-reveal--left {
  transform: translate3d(-24px, 0, 0);
}

.rsg-reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .rsg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------- footer */

footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
  padding: var(--space-9) var(--gutter) var(--space-7);
  background: var(--surface-muted);
  border-top: 1px solid var(--hairline-soft);
  font-size: var(--text-sm);
}

footer .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: start;
}

footer .brand > span {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  font-weight: 680;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

footer .brand > span small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 500;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

footer > div b {
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

footer > div a {
  color: var(--ink-soft);
  transition: color var(--dur-fast) var(--ease-soft);
}

footer > div a:hover {
  color: var(--brand);
}

footer .copyright {
  grid-column: 1 / -1;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  font-size: var(--text-xs);
}

@media (max-width: 860px) {
  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: var(--space-8);
  }
}

/* ---------------------------------------------------------------- dialog */

dialog {
  width: min(760px, calc(100vw - 2 * var(--space-4)));
  max-height: min(88vh, 940px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden auto;
}

dialog::backdrop {
  background: rgba(20, 20, 22, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

dialog[open] {
  animation: rsg-dialog-in var(--dur-base) var(--ease-out) both;
}

@keyframes rsg-dialog-in {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.98);
  }
}

.modal-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-4);
  background: linear-gradient(var(--surface) 78%, rgba(255, 255, 255, 0));
}

.modal-head h2 {
  font-size: var(--text-2xl);
}

.modal-head .eyebrow {
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand);
}

.modal-head button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font-size: 18px;
  line-height: 1;
}

.modal-head button:hover {
  background: var(--surface-sunken);
}

#inquiry-form {
  padding: 0 var(--space-6) var(--space-6);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid label > span {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-soft);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.form-grid .inline-choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-grid .inline-choice input {
  width: 18px;
  min-height: 0;
  height: 18px;
  accent-color: var(--brand);
}

.form-grid .inline-choice > span {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.attachment-field input[type="file"] {
  padding: var(--space-3);
  border-style: dashed;
  background: var(--surface-muted);
}

.attachment-field small {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink-faint);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.privacy-note {
  margin: var(--space-5) 0 0;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.privacy-note a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#inquiry-form .submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-status {
  min-height: 22px;
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.form-status.is-success {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(10, 99, 196, 0.06);
  color: var(--ink);
}

.form-status.is-success .inquiry-reference {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.form-status.is-error {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(186, 45, 32, 0.07);
  color: #93261a;
}

.basket {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  font-size: var(--text-sm);
}

.basket b {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.basket-lines {
  display: grid;
  gap: var(--space-2);
}

.basket-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.basket-line label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.basket-quantity {
  width: 76px;
  min-height: 34px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-size: var(--text-sm);
}

.basket-remove {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  font-size: 14px;
  line-height: 1;
}

.basket-remove:hover {
  background: var(--hairline);
}

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  dialog {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* ------------------------------------------------------------- scroll cue */

.home-scroll-nav {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-3);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-out);
}

.home-scroll-nav:hover {
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.home-scroll-nav i {
  font-style: normal;
  transition: transform var(--dur-base) var(--ease-spring);
}

.home-scroll-nav.is-up i {
  transform: rotate(180deg);
}

/* ------------------------------------------------------- dark topbar */
/* Used over the black homepage hero; turns light once the page scrolls onto
   white content (motion.js toggles .is-stuck). */

.topbar--dark:not(.is-stuck) {
  background: rgba(11, 11, 12, 0.72);
  color: var(--on-dark);
}

.topbar--dark:not(.is-stuck) .brand-logo {
  filter: brightness(0) invert(1);
}

.topbar--dark:not(.is-stuck) .brand > span small {
  color: var(--on-dark-faint);
}

.topbar--dark:not(.is-stuck) nav a {
  color: var(--on-dark-muted);
}

.topbar--dark:not(.is-stuck) nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar--dark:not(.is-stuck) .nav-actions select,
.topbar--dark:not(.is-stuck) .menu {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.topbar--dark:not(.is-stuck) .nav-actions select option {
  color: var(--ink);
}

@media (max-width: 960px) {
  .topbar--dark:not(.is-stuck) nav.open {
    background: rgba(11, 11, 12, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

/* "Part not on the website" disclosure inside inquiry forms. */
.inq-unlisted {
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
}

.inq-unlisted summary {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}

.inq-unlisted summary::-webkit-details-marker {
  display: none;
}

.inq-unlisted[open] summary {
  padding-bottom: var(--space-2);
}

.inq-unlisted label {
  display: block;
  padding: 0 var(--space-3) var(--space-3);
}

.inq-unlisted[open] textarea {
  animation: rsg-dialog-in var(--dur-base) var(--ease-out) both;
}

/* ------------------------------------------------ inquiry basket rows */
/* Folded row: thumbnail + family/spec + quantity; expands to photo and
   fitment details (assets/rsg/basket-details.js). */

.basket-line.basket-line--rich {
  display: block;
  padding: 0;
  overflow: hidden;
}

.basket-item > summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  cursor: pointer;
  list-style: none;
}

.basket-item > summary::-webkit-details-marker {
  display: none;
}

.basket-item-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: var(--surface-muted);
  overflow: hidden;
}

.basket-item-thumb img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.basket-item-text {
  display: grid;
  min-width: 0;
}

.basket-item-text strong {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.basket-item-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.basket-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.basket-item-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-base) var(--ease-out);
}

.basket-item[open] .basket-item-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.basket-item-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--hairline-soft);
  animation: rsg-dialog-in var(--dur-base) var(--ease-out) both;
}

.basket-item-body > img {
  grid-row: span 2;
  width: 140px;
  height: 140px;
  object-fit: contain;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hairline-soft);
}

.basket-item-body dl {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  margin: 0;
}

.basket-item-body dl > div {
  display: grid;
  gap: 2px;
}

.basket-item-body dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.basket-item-body dd {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.basket-item-body dd span {
  color: var(--ink-faint);
}

.basket-item-link {
  align-self: end;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 620px) {
  .basket-item > summary {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
  }
  .basket-item-thumb {
    width: 40px;
    height: 40px;
  }
  .basket-item-controls {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .basket-item-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .basket-item-body > img {
    grid-row: auto;
    width: 100%;
    height: 180px;
  }
}
