/* TotalVolleyShop ? ????? ? ???? TotalVolleySite (Oswald, ????? ???????, ????????) */

/* Visible viewport height (dvh when supported) + bottom inset for browser chrome / home indicator.
   --tv-browser-chrome reserved for optional Visual Viewport JS later. */
:root {
  --tv-app-height: 100vh;
  --tv-browser-chrome: 0px;
  --tv-bottom-inset: max(
    0.75rem,
    env(safe-area-inset-bottom, 0px),
    var(--tv-browser-chrome, 0px)
  );
}

@supports (height: 100dvh) {
  :root {
    --tv-app-height: 100dvh;
  }
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* WebKit/Android: ?????? ????? ????????? ??? ???? ?? ????? ????????? */
  -webkit-tap-highlight-color: transparent;
}

/* overflow-x ?????? ?? html ? ????? body ?????????? ??????-??????????? ? position: sticky ? ??????? ?????? ?? ???????? */
html {
  width: 100%;
  min-height: var(--tv-app-height);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ?? ????????? ???????? ?????????? ?????? ????????? (?????? ???????? ????????, ?????? ?? ?????) */
@media (max-width: 767.98px) {
  html,
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: var(--tv-app-height);
  overflow: visible;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  /* ????????? ???????? ????? ?? ???-???????????; ?? ????????? ??????????????? */
  touch-action: manipulation;
}

/* page-loading-overlay removed (React UI controls loading). */

/* ??????? ???????? ??? ?????? ? ?????? */
.shop-btn,
.shop-link,
.shop-nav .nav-cart-link,
.shop-nav .nav-order-lookup,
.shop-nav .brand,
.breadcrumb a,
.nav-dropdown__item,
.product-card,
.add-to-cart-btn,
.product-size-pill {
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ????? Oswald ??? ?? TotalVolleySite */
.font-oswald {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: normal;
}

.font-oswald-italic {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* ??????: ???????? ????? ??? ?? ????? */
.shop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: var(--tv-header-gradient, linear-gradient(to right, #2563eb, #1d4ed8, #1e40af));
  /* ?????: ????????? ???????? ???????????? viewport, ????? ???????? ? ??????? ?????? */
  background-attachment: fixed;
  background-position: 0 0;
  background-size: 100vw 100%;
  /* ??? ????: ????? ????? ????? ????? ??????? ? ???????? */
  box-shadow: none;
}

/* ?????? ??? ??????? ??? ??????? ?????? (??? ???????? Container) */
.shop-breadcrumb-bar {
  /* ???? ?????? ???????? ?????? ? ???????? ?????? ?????? ?????????? */
  background: transparent;
}

/* ???/???????????? ?? ?????? ?????????? (?? ?????? ?? ??????). */
.shop-breadcrumb-bar .mantine-Container-root {
  background: var(--tv-header-gradient, linear-gradient(to right, #2563eb, #1d4ed8, #1e40af));
  /* ????????? ???????? ???????????? viewport, ????? ???????? ? ??????? */
  background-attachment: fixed;
  background-position: 0 0;
  background-size: 100vw 100%;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0 0 0.5rem 0.5rem;
  /* ???? ?????? ????, ????? ?? ???? ????? ? ??????? */
  box-shadow: 0 10px 18px -16px rgba(0, 0, 0, 0.35);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ???????/??????????? ??? ??????????? ?????? ? ?????? ?????????? */
.shop-breadcrumb-bar .mantine-Container-root::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(22rem, 65vw);
  height: 0.95rem;
  /* ??????? ?????? ????? ????????? ??????, ????? ?? ???? ??????? ?? ????? */
  transform: translate(-50%, 95%);
  background: inherit;
  background-attachment: fixed;
  background-position: 0 0;
  background-size: 100vw 100%;
  border-radius: 999px;
  box-shadow: 0 14px 22px -18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  filter: blur(0.35px);
}

/* ??????? ??????: ???????????? ??? ??????? */
.tv-breadcrumb {
  background: transparent;
  color: inherit;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-left: 0.5rem;
}

.tv-breadcrumb__link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transform-origin: left center;
}
.tv-breadcrumb__link:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.06);
}

/* Mantine Anchor ????? ??????????? ???? ? ????????? ?????? ??????? ?????? */
.tv-breadcrumb a,
.tv-breadcrumb .mantine-Anchor-root {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.tv-breadcrumb a:hover,
.tv-breadcrumb .mantine-Anchor-root:hover {
  color: #fff !important;
}

.tv-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.tv-breadcrumb__current {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .tv-breadcrumb {
    margin: 0;
  }
}

.shop-nav .container {
  /* ?????? ????? "? ??????" Mantine Container size="lg" */
  max-width: var(--container-size-lg, 71.25rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.shop-nav .brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.shop-nav .brand:hover {
  color: #e0e7ff;
}

/* ?????? ????? ???????: ?????, ???????, ??????? */
.shop-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ?????? ???????? ? ?????? ??? ??????? ???????? ? ????? 768px ?????? ? ????????? ???????? */

.shop-nav .nav-cart-link,
.shop-nav .nav-order-lookup {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.shop-nav .nav-cart-link:hover,
.shop-nav .nav-order-lookup:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ?????? ??????? ? ??????? ?? ????? ?????? */
.shop-nav .nav-order-lookup,
.shop-nav .nav-cart-link {
  align-self: flex-start;
  margin-top: 0.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.shop-nav .nav-order-lookup {
  gap: 0.15rem;
  width: 4.75rem;
  min-width: 4.75rem;
  min-height: 3.375rem;
  box-sizing: border-box;
}

.shop-nav .nav-cart-link {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
  width: 4.75rem;
  min-width: 4.75rem;
  min-height: 3.375rem;
  box-sizing: border-box;
}

.shop-nav .nav-cart-label {
  font-size: 0.7rem;
  line-height: 1;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.95);
}

.shop-nav .nav-order-lookup-icon,
.shop-nav .nav-cart-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.shop-nav .nav-order-lookup-label {
  font-size: 0.7rem;
  line-height: 1;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.95);
}

.shop-nav .nav-cart-icon-wrap {
  display: inline-block;
  position: relative;
}


.shop-nav .nav-cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1rem;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-sizing: border-box;
}

.shop-nav .nav-cart-count.nav-cart-count--empty {
  display: none;
}

/* ?????????? ???? ????????? */
.shop-nav .nav-dropdown {
  position: relative;
  align-self: flex-start;
  margin-top: 0.75rem;
}

.shop-nav .nav-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  min-width: 4.75rem;
  min-height: 3.375rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.shop-nav .nav-dropdown__head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  min-height: 3.375rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border: none;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.shop-nav .nav-dropdown__head:hover {
  color: #fff;
}

.shop-nav .nav-dropdown__icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.shop-nav .nav-dropdown__label-text {
  font-size: 0.7rem;
  line-height: 1;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.95);
}

.shop-nav .nav-dropdown:hover .nav-dropdown__trigger,
.shop-nav .nav-dropdown.is-open .nav-dropdown__trigger {
  background: rgba(255, 255, 255, 0.15);
}

.shop-nav .nav-dropdown__panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  min-width: 14rem;
  padding: 0.5rem 0;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

/* ? 768px ????? ????????? ??????: ??????? ??????, ?????? ?? ?????? ?????; ?????? ???????? ?? ?????? */
@media (max-width: 768px) {
  .shop-main {
    position: relative;
    z-index: 0;
  }
  /* ?? ??????? ??????? ?????? ?? ?????????? ?????? */
  .shop-breadcrumb-bar {
    display: none;
  }
  .shop-main__inner {
    padding-top: 7.25rem;
  }
  .shop-main__inner > .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .shop-main__inner > .mantine-Container-root {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* legacy breadcrumb ???? ???????? ?? ??????? */
  .breadcrumb {
    display: none;
  }

  /* Mobile: show where the user is via top nav */
  .shop-nav .brand.is-active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .shop-nav .nav-cart-link.is-active,
  .shop-nav .nav-order-lookup.is-active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
  }

  .shop-nav .mantine-Menu-item.is-active,
  .shop-nav .mantine-Menu-item[data-active] {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
  }

  .catalog-page-react__head {
    justify-content: flex-end;
    margin-bottom: 0.75rem;
  }

  .checkout-page-body .shop-main__inner > .container.checkout-page {
    min-height: calc(var(--tv-app-height) - 7.25rem);
  }
  .hero-slider {
    z-index: 0;
    height: 280px;
  }
  .hero-slider__track {
    height: 280px;
  }
  .hero-slider .shop-hero {
    height: 280px;
  }
  .shop-hero__bg-img {
    object-fit: cover;
  }
  .shop-nav {
    z-index: 9998;
  }
  .shop-nav .container {
    flex-direction: column;
    height: auto;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0.75rem 0.5rem;
  }
  .shop-nav .brand {
    display: block;
    width: 100%;
    padding: 0.6rem 0.5rem 0.5rem;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
  .shop-nav .nav-right {
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.25rem;
  }
  .shop-nav .nav-right::-webkit-scrollbar {
    display: none;
  }
  .shop-nav .nav-order-lookup,
  .shop-nav .nav-cart-link,
  .shop-nav .nav-dropdown {
    flex-shrink: 0;
  }
  .shop-nav .nav-dropdown {
    position: static;
  }
  .shop-nav .nav-dropdown__panel {
    position: fixed;
    left: 50%;
    right: auto;
    top: 7.25rem;
    margin-top: 0;
    transform: translateX(-50%);
    width: min(14rem, calc(100vw - 1.5rem));
    min-width: 12rem;
    max-width: 18rem;
    z-index: 9999;
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
}

.shop-nav .nav-dropdown:hover .nav-dropdown__panel,
.shop-nav .nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
}

.shop-nav .nav-dropdown__item {
  display: block;
  padding: 0.5rem 1rem;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.shop-nav .nav-dropdown__item:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.shop-nav .nav-dropdown__item.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.shop-nav .nav-dropdown__item.nav-dropdown__sub {
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.shop-nav .nav-dropdown__item.nav-dropdown__sub:hover {
  color: #1d4ed8;
}

.shop-nav .nav-dropdown__count {
  margin-left: 0.35rem;
  font-weight: 400;
  color: #64748b;
  font-size: 0.85em;
}

.shop-nav .nav-dropdown__sep {
  display: block;
  height: 1px;
  margin: 0.4rem 0.75rem;
  background: #e2e8f0;
}

/* ??????? ??????: ?????? ? ???? ????? ??? ??????? ??? ????????? */
.breadcrumb {
  position: sticky;
  top: 5rem; /* ?????? ?????????????? ?????? .shop-nav */
  z-index: 280; /* ???? ???????? ????????, ???? ??????? (300) */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #94a3b8;
}

.breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 0;
}

.breadcrumb__sep {
  color: #94a3b8;
  flex-shrink: 0;
}

.breadcrumb__current {
  color: #475569;
  font-weight: 500;
  min-width: 0;
}

/* ??????? ???????? ???????? ??? ???????? ???????? */
.catalog-loading-bar {
  position: relative;
  height: 3px;
  margin: -0.5rem 0 1rem;
  background: #e0e7ff;
  overflow: hidden;
  border-radius: 0 0 2px 2px;
}

.catalog-loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #2563eb 50%, transparent 100%);
  animation: catalog-loading-sweep 0.85s ease-in-out infinite;
}

@keyframes catalog-loading-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

/* ??????????? ? ?????????? ???????? (??? ?????????????? ????????????) */
.shop-nav .nav-dropdown__item.nav-dropdown__sub.depth-1 { padding-left: 1.75rem; }
.shop-nav .nav-dropdown__item.nav-dropdown__sub.depth-2 { padding-left: 2.25rem; }
.shop-nav .nav-dropdown__item.nav-dropdown__sub.depth-3 { padding-left: 2.75rem; }
.shop-nav .nav-dropdown__item.nav-dropdown__sub.depth-4 { padding-left: 3.25rem; }
/* ??????? ????????: ???? ??????? + ????????? */
.catalog-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.catalog-submenu a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.catalog-submenu a.submenu-all {
  background: #2563eb;
  color: #fff;
}

.catalog-submenu a.submenu-all:hover {
  background: #1d4ed8;
  color: #fff;
}

.catalog-submenu a.submenu-child {
  background: #f1f5f9;
  color: #475569;
}

.catalog-submenu a.submenu-child:hover,
.catalog-submenu a.submenu-child.active {
  background: #e2e8f0;
  color: #1e293b;
}

/* ????????? ????????: ????? ??????? (?????????????), ?? ?????? ??????? */
.catalog-layout {
  position: relative;
  z-index: 10; /* ???? ??????? ??????, ????? ????? ??????? ??? ??? ??? ????????? */
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  --catalog-sidebar-width: 14rem;
}

.catalog-sidebar {
  flex-shrink: 0;
  width: var(--catalog-sidebar-width);
  min-height: 1px;
  align-self: flex-start;
}

.filter-drawer-tab {
  display: none;
}

.filter-drawer-overlay {
  display: none;
}

@media (min-width: 768px) {
  .catalog-sidebar {
    --catalog-sidebar-width: 16rem;
  }
}

.catalog-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
  container-type: inline-size;
  container-name: catalog-main;
}

/* ?????? ??????? ? ????? ???????? (????????? ??? ??????? ????????) */
.filter-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  max-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .filter-panel {
    position: fixed;
    top: 6rem;
    left: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem));
    width: var(--catalog-sidebar-width);
    z-index: 200;
    /* ????? ?? ???????? ?? ????? ??? ????????? ???? */
    max-height: calc(100vh - 6rem - 14rem);
  }
}

@media (max-width: 767.98px) {
  .catalog-layout {
    gap: 0;
  }

  .catalog-main {
    width: 100%;
  }

  .catalog-sidebar {
    /* ?? ???????? ????? ? ?????????; ?????? ??????? ??????????? ???? */
    width: 0;
    flex: 0 0 0;
  }

  .catalog-sidebar .filter-panel {
    --drawer-tab-width: 2.75rem;
    position: fixed;
    top: 8rem;
    left: 0;
    width: min(18rem, 90vw);
    overflow: visible;
    border-radius: 0 0.75rem 0.75rem 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 400;
    display: flex;
    flex-direction: column;
  }

  .catalog-sidebar.is-open .filter-panel {
    transform: translateX(0);
  }

  .filter-drawer-tab {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    right: calc(-1 * var(--drawer-tab-width));
    width: var(--drawer-tab-width);
    height: 5.25rem;
    padding: 0;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 0 0.9rem 0.9rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    user-select: none;
    z-index: 450;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .catalog-sidebar .filter-panel .filter-form {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .catalog-sidebar .filter-panel .filter-form__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .filter-drawer-tab.filter-drawer-tab--hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .filter-drawer-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
  }

  body.filter-drawer-open .filter-drawer-overlay {
    display: block;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 350;
  }
}

.filter-block {
  margin-top: 1.25rem;
}

.filter-block:first-child {
  margin-top: 0;
}

.filter-panel__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-panel__title--main {
  font-size: 1.6rem;
  font-style: normal;
  color: #2563eb;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

/* ????????? ???????? ?? ??????? ??? ????????? ? ???????? ?????? ??????? */
.filter-form__scroll > .filter-panel__title--main {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-panel__title-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-panel__title-row .filter-panel__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
}

.filter-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: help;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.filter-help:hover,
.filter-help:focus {
  background: #2563eb;
  color: #fff;
  outline: none;
}

.filter-help__icon {
  line-height: 1;
}

.filter-help__tooltip {
  position: fixed;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  background: #1e293b;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 10001;
}

.filter-help__tooltip.filter-help__tooltip--positioned {
  transform: translate(-50%, -100%);
}

.filter-help__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.filter-help:hover .filter-help__tooltip,
.filter-help:focus .filter-help__tooltip {
  opacity: 1;
  visibility: visible;
}

.filter-select {
  width: 100%;
  padding: 0.6rem 2.25rem 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #334155;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 L6 7.5 L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}

.filter-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-range-sep {
  color: #94a3b8;
  font-weight: 500;
}

.filter-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  -moz-appearance: textfield;
}

.filter-input::placeholder {
  color: #94a3b8;
}

/* ??????? ????????? ? ????? ???/??? ? ????????? ???? ? ???? ?????? ? ?????????? */
.filter-input::-webkit-outer-spin-button,
.filter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.filter-form__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ?????????? ?????? ? ????????????? (???????) */
.filter-dropdown-wrap .filter-dropdown {
  position: relative;
}

.filter-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.filter-dropdown__trigger:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.filter-dropdown__trigger[aria-expanded="true"] {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-dropdown__arrow {
  font-size: 0.6rem;
  color: #64748b;
  transition: transform 0.2s;
}

.filter-dropdown__trigger[aria-expanded="true"] .filter-dropdown__arrow {
  transform: rotate(180deg);
}

.filter-dropdown__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 50;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-height: 18rem;
  overflow-y: auto;
}

.filter-dropdown__panel .filter-checkboxes {
  padding: 0.5rem;
  gap: 0.25rem;
}

.filter-dropdown__panel .filter-checkbox {
  padding: 0.4rem 0.5rem;
}

/* ????????? ???? ?????? ???????? */
.filter-size-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, var(--tv-bottom-inset));
}

.filter-size-modal[hidden] {
  display: none;
}

.filter-size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.filter-size-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filter-size-modal__title {
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

.filter-size-modal__body {
  flex: 1;
  min-height: 12rem;
  overflow-y: auto;
  padding: 0 1.25rem 0.75rem;
}

.filter-size-modal__body .filter-dropdown__panel {
  position: static;
  display: block;
  top: auto;
  left: auto;
  right: auto;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.filter-size-modal__body .filter-dropdown__panel-scroll {
  display: block;
  max-height: min(20rem, 60vh);
  overflow-y: auto;
  min-height: 10rem;
}

.filter-size-modal__body .filter-checkboxes {
  display: flex;
  flex-direction: column;
  max-height: none;
  padding: 0.25rem 0;
  gap: 0.25rem;
}

.filter-size-modal__actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
}

.filter-size-modal__btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.filter-size-modal__btn--cancel {
  background: #f1f5f9;
  color: #475569;
}

.filter-size-modal__btn--cancel:hover {
  background: #e2e8f0;
}

.filter-size-modal__btn--done {
  background: #2563eb;
  color: #fff;
}

.filter-size-modal__btn--done:hover {
  background: #1d4ed8;
}

body.filter-size-modal-open {
  overflow: hidden;
}

/* ??????? ?????? ?????? ??????? ?? ???????? ?????? (?????????) */
.product-detail-size-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, var(--tv-bottom-inset));
}

.product-detail-size-modal[hidden] {
  display: none;
}

.product-detail-size-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.product-detail-size-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-detail-size-modal__title {
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

.product-detail-size-modal__body {
  flex: 1;
  min-height: 8rem;
  max-height: min(20rem, 55vh);
  overflow-y: auto;
  padding: 0.5rem 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}

.product-detail-size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.product-detail-size-option:hover {
  background: rgba(239, 246, 255, 0.92);
  border-color: #93c5fd;
}

.product-detail-size-option[aria-selected="true"],
.product-detail-size-option.is-selected {
  border: 2px solid #2563eb;
  background: rgba(239, 246, 255, 0.92);
}

.product-detail-size-option em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  margin-left: 0.2em;
}

.product-detail-size-option.has-in-cart .product-detail-size-option-cart {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
  background: url("new-icons/korzina.svg") center/contain no-repeat;
  filter: grayscale(1) brightness(0.7);
}

.product-detail-size-option:disabled,
.product-detail-size-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: #f1f5f9;
  color: #64748b;
}

/* ??? ?? ????????: ??????? ?????? ?? ???????? + ?????? */
.product-detail__add-btn--in-cart {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.product-detail__add-btn--in-cart .product-detail__add-btn-icon {
  filter: brightness(0) invert(1);
}

.product-detail__add-btn--in-cart:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}

.product-detail-size-modal__actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
}

.product-detail-size-modal__btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.product-detail-size-modal__btn--cancel {
  background: #f1f5f9;
  color: #475569;
}

.product-detail-size-modal__btn--cancel:hover {
  background: #e2e8f0;
}

.product-detail-size-modal__btn--done {
  background: #2563eb;
  color: #fff;
}

.product-detail-size-modal__btn--done:hover {
  background: #1d4ed8;
}

body.product-detail-size-modal-open {
  overflow: hidden;
}

/* ??????? ?????? ??????? ?? ???????? (??????? / ???????) */
.card-size-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, var(--tv-bottom-inset));
}

.card-size-modal[hidden] {
  display: none;
}

.card-size-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.card-size-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-size-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  flex-shrink: 0;
}

.card-size-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.card-size-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

/* ?????? ? ????????? ???? ? ?????? ? ????????????, ????? ??? ?? ?????? ??????. */
.card-size-modal__x {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.card-size-modal__close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.card-size-modal__close:active {
  background: #cbd5e1;
}

.card-size-modal__body {
  flex: 1;
  min-height: 8rem;
  max-height: min(20rem, 55vh);
  overflow-y: auto;
  overflow-x: visible;
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}

/* padding ?????? ?? .card-size-modal__option-inner ? ????? ????? ???????? ?? ??????? div
   (????? ?????? ? ???????) ? ??????? ?????? ?? ?????????. */
.card-size-modal__option {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 3.5rem;
  min-height: 2.5rem;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  vertical-align: top;
}

/* ???? ????? ??? ???? ????: ????? "? ???????", ????? "????????", ??????? */
.card-size-modal__option-in-cart-badge,
.card-size-modal__option-badge,
.card-size-modal__option-remove {
  position: absolute;
  top: -0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ?????? ?? ?????? ????????????? ????? ?? ?????? ??????? (????? ??????? ?????? ????). */
.card-size-modal__option-in-cart-badge,
.card-size-modal__option-badge {
  pointer-events: none;
}

/* ??????? ? ???????? ?????? ?????? */
.card-size-modal__option-remove {
  right: -0.35rem;
  padding: 0;
  border: none;
  background: #dc2626;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  z-index: 2;
  display: none; /* JS/React sets to flex when in cart */

  /* ?????????? ??????? */
  font-size: 1rem;
  line-height: 1;
}

.card-size-modal__option-remove:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

/* ????? ???? (? ???????) ? ???????? ????? ?????? */
.card-size-modal__option-in-cart-badge {
  left: -0.35rem;
  padding: 0 0.25rem;
  background: #64748b;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  display: none; /* JS sets to flex when in cart */
}

/* ????? (????????) ? ???????? ????? ??? ????? ????? ???????? */
.card-size-modal__option-badge {
  left: -0.35rem;
  padding: 0 0.25rem;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: none; /* JS sets to flex when visible */
}

.card-size-modal__option.has-in-cart .card-size-modal__option-badge {
  left: 1rem;
}

.card-size-modal__option:hover:not(.is-disabled) {
  background: rgba(239, 246, 255, 0.92);
  border-color: #93c5fd;
}

.card-size-modal__option.is-disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
}

.card-size-modal__option.has-in-cart .card-size-modal__option-cart {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url("new-icons/korzina.svg") center/contain no-repeat;
  filter: grayscale(1) brightness(0.7);
}

.card-size-modal__option.is-selected {
  border-color: #2563eb;
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* React: ??????? ????????? + ?????????? ?????? (??? ????????? <button>) */
.card-size-modal__option-inner {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  min-width: 3.5rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  cursor: pointer;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}

.card-size-modal__option.is-disabled .card-size-modal__option-inner {
  cursor: not-allowed;
}

.card-size-modal__footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
}

.card-size-modal__confirm,
.card-size-modal__add-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.15s;
}

.card-size-modal__confirm--buy-now {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.card-size-modal__confirm:hover:not(:disabled),
.card-size-modal__add-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.45);
}

.card-size-modal__confirm--buy-now:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.card-size-modal__confirm:disabled,
.card-size-modal__add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.card-size-modal__add-btn-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 50%;
  background: #fff;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

body.card-size-modal-open {
  overflow: hidden;
}

/* Mobile: нижний шит как у qty-edit-modal */
@media (max-width: 48em) {
  .card-size-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .card-size-modal__overlay {
    background: rgba(15, 23, 42, 0.45);
  }

  .card-size-modal__dialog {
    width: min(100%, 26rem);
    max-width: none;
    max-height: min(85vh, 36rem);
    margin: 0;
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.18);
  }

  .card-size-modal__head {
    padding: 0.85rem 1rem 0.5rem;
  }

  .card-size-modal__title {
    font-size: 1.05rem;
    color: #0f172a;
  }

  .card-size-modal__close {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
  }

  .card-size-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
  }

  .card-size-modal__body {
    min-height: 0;
    max-height: min(16rem, 42vh);
    padding: 0.5rem 1rem 0.35rem;
    gap: 0.55rem;
  }

  .card-size-modal__option {
    min-width: 3.75rem;
    min-height: 2.65rem;
    border-radius: 999px;
    background: #f8fafc;
  }

  .card-size-modal__option.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
  }

  .card-size-modal__footer {
    border-top: none;
    padding: 0.5rem 1rem max(1rem, var(--tv-bottom-inset, 0.75rem));
  }

  .card-size-modal__confirm,
  .card-size-modal__add-btn {
    min-height: 2.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: none;
    box-shadow: none;
  }

  .card-size-modal__confirm:hover:not(:disabled),
  .card-size-modal__add-btn:hover:not(:disabled) {
    transform: none;
    box-shadow: none;
    filter: brightness(0.97);
  }

  .card-size-modal__confirm:active:not(:disabled),
  .card-size-modal__add-btn:active:not(:disabled) {
    filter: brightness(0.95);
  }

  .card-size-modal__confirm--buy-now {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
  }
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 18rem;
  overflow-y: auto;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.35rem 0;
  border-radius: 0.375rem;
  transition: background 0.15s;
}

.filter-checkbox:hover {
  background: #f8fafc;
}

.filter-checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #2563eb;
  cursor: pointer;
}

.filter-checkbox__label em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  margin-left: 0.2em;
}

.filter-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  border: none;
}

.filter-btn--apply {
  background: #2563eb;
  color: #fff;
}

.filter-btn--apply:hover {
  background: #1d4ed8;
  color: #fff;
}

.filter-btn--reset {
  background: #f1f5f9;
  color: #475569;
}

.filter-btn--reset:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ???????? ??????? ? ???????? ??? ????????????? ??????; ????? ?????? ? ?????? ? ???? ??? ?????? ???????? */
.shop-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: var(--tv-app-height);
  flex: 1;
  overflow: visible; /* ????? position: sticky ? .breadcrumb ?? ??????????? */
}

.shop-main__inner {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Inner ?????? ???????? ???? ?????, ? ?????? ??? ????-?????? ? ????? padding. */
.shop-main__inner {
  min-height: var(--tv-app-height);
  padding-top: 5rem;
}

/* ?? ??????? ????? ???? (? 2 ????), ??????? ?????? ??? ??? ?????? ???? ?????? */
@media (max-width: 768px) {
  .shop-main__inner {
    padding-top: 7.25rem;
  }
}

.shop-main__inner > .container {
  flex: 1;
  width: 100%;
}

/* ?????? ?????? ?? ?????? ????????? ?? flex-??????? (????? ???????? ?????? ?????? ??? ?????). */
.shop-main__inner > .shop-breadcrumb-bar {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  overflow: visible;
}

/* Mantine Container (React ????????) ? ?????? ?? ?? ??????/????????, ??? ? ? .container */
.shop-main__inner > .mantine-Container-root {
  width: 100%;
  max-width: var(--container-size-lg, 71.25rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Hero-???? ??? ?? ??????? TotalVolleySite */
.shop-hero {
  position: relative;
  padding: 5rem 0 6rem;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.9) 0%, rgba(30, 64, 175, 0.85) 50%, rgba(30, 58, 138, 0.9) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.shop-hero--with-image {
  background: none;
}

/* ??? ???????: ???????? ????????? ?? ???? ????, ??? ????? ???????? */
.shop-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shop-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shop-hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ??? ?????? ? ?????? ? ???????? ????, ??? ?????????? */
.shop-hero--with-image.shop-hero--image-only::before {
  background: rgba(0, 0, 0, 0.08);
}

.shop-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 4.5rem;
  width: 100%;
}

.shop-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shop-hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shop-btn--hero {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shop-btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 450px;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 450px;
}

.hero-slider .shop-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 450px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-slider .shop-hero.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-slider__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.hero-slider__btn--prev {
  left: 1rem;
}

.hero-slider__btn--next {
  right: 1rem;
}

.hero-slider__btn svg {
  color: #1e293b;
}

.hero-slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ?????? */
.shop-section {
  padding: 3rem 0 4rem;
}

.shop-section.catalog-main {
  padding: 0 0 4rem;
}

.shop-section.alt {
  background: linear-gradient(to bottom, #fff, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}

.shop-section h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
}

.shop-section-header {
  width: 100%;
  min-width: 0;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.shop-section-header__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: #2563eb;
}

@media (min-width: 48.0625em) {
  .shop-section-header {
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
  }
}

.shop-section-header__more,
.shop-section-header__more.mantine-UnstyledButton-root {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid #93c5fd !important;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shop-section-header__more:hover,
.shop-section-header__more.mantine-UnstyledButton-root:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #60a5fa !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.18);
}

.shop-section-header__more:active {
  transform: scale(0.96);
}

.shop-section-header__icon {
  display: block;
}

.shop-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.shop-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ????? ????????? ? ???????? ??? ?? TotalVolleySite */
.catalogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, transform 0.3s;
}

.catalog-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

.catalog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.catalog-card .count {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.catalog-card ul {
  list-style: none;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.catalog-card li {
  margin: 0.35rem 0;
}

.catalog-card a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.catalog-card a:hover {
  text-decoration: underline;
}

/* ????? ???????: ?? ???????? 3 ???????, ?? ????????? 2 (??????? ?? ???? ???) */
.catalog-products-grid--loading {
  min-height: 12rem;
  opacity: 0.6;
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ????? ??????? ???????? (????. 418px): ?????? 2 ??????? ?? ?????? ?????????? */
@container catalog-main (max-width: 520px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ?? ????????? 2 ???????, ??????? ?????????? */
@media (max-width: 767.98px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    min-height: calc(100vh - 7.5rem); /* ????? ???? ????? ?????????? ?????? ??????? ??????? ?? ???? ?????? */
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* ?????? ??????? ? grid: ?? ???? ???????? ??????????? ???? ?????? */
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: visible;
  padding: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, transform 0.3s;
  /* ????? ????????: ??? ?????????? ????????? ?????? ??? ???? ?? ?????????? */
  -webkit-user-select: none;
  user-select: none;
}

.product-card.popover-open {
  z-index: 200;
}

/* ???????? ????? ???????? ??? ???????? ??????? ? ????? ????? ???? ??????? ???? ?? ??????? */
.product-card.popover-open::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  pointer-events: auto;
}

/* ??? translate ?? ???? ????????: ????? ??? hover ???????? ????????? ??? ???????? ?
   ???? :hover ????????? (???????? ?????? ????????) ? ???????? ????? ?? ?????? ???????. */
.product-card[data-href] {
  cursor: pointer;
}

/* Hover-??????? ?????? ???, ??? hover ??????? ?????????? (????? ?? ??????? ??? ?? ?????? ???????? ??? "?????? ??? ????????") */
@media (hover: hover) and (pointer: fine) {
  .product-card[data-href]:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  }
}

.product-card__img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  background: #f1f5f9;
  -webkit-user-drag: none;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card[data-href]:hover .product-card__media {
    transform: translateY(-2px);
  }
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ???????? ??????: ??? ????? ? ??????? (?????) ? ????????? (???????????? ?????) */
.product-detail {
  position: relative;
  margin-bottom: 0;
}

.product-detail--desktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.product-detail--mobile {
  display: none;
}

/* ???????? ??????: ????????? ????? ?? ?????? ?????? ? ???? ?????????? ? ???????? ?????? ????? ??????? ??????? */
.product-detail-page-body {
  min-height: var(--tv-app-height);
  display: flex;
  flex-direction: column;
  /* ????? ????? ??????? + flex (Mantine Grid ? ?.?.) ???? ?????????? ?????-?????? ?? ????????? */
  overflow-x: hidden;
}

.product-detail-page-body .shop-main,
.product-detail-page-body .hop-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ?????: ? .shop-main__inner ????????? ????? min-height: 100vh ? padding-top ??? ????-??????.
   ??? border-box ??? ???? ??????????? ?????? > 100vh (100vh + padding), ??-?? ???? ?????????? ???????? ??????. */
.product-detail-page-body .shop-main__inner {
  box-sizing: border-box;
  /* ? .shop-main__inner ???? min-height: 100vh + padding-top ??? ????-??????.
     ????? box-sizing: border-box, ?? ?? ??????????? ?????? > viewport, ? ??? ???? ?? ?????? flex-???????. */
}

/* hop-main: ??? ?????? ?????? ?? ????????. ?? ??????? min-height:0 !important ????? flex ? ?????????
   Mantine-????????? ???????? ?????? ?? ?????????? ????????. */
@media (min-width: 48em) {
  .product-detail-page-body .hop-main,
  .product-detail-page-body .hop-main__inner {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    box-sizing: border-box;
  }
}

.product-detail-page-body .shop-main__inner > .container {
  flex: 0 0 auto;
  height: calc(var(--tv-app-height) - 5rem);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible; /* ????? position: sticky ? .breadcrumb ?? ??????????? */
}

.product-detail-page-body .breadcrumb {
  flex-shrink: 0;
}

.product-detail-page-body .product-detail--desktop {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2.5rem;
  align-items: start;
  overflow: hidden;
}

/* ????? ???????? ??????: ?????? ???????? ??????????? ??????, ??? ??? ????????? (?????? ?? ????????) */
.product-detail-page-body .product-detail--desktop .product-detail__col--gallery {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: start;
  height: min-content;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--gallery .product-detail__gallery {
  display: block;
  margin-top: 1.25rem;
}

/* ?????? ????????: ???????? ? ???????+???+?????????? ? ???? ? ?????? ? ???????? (????????? ??????, ???????? ??????????) */
.product-detail-page-body .product-detail--desktop .product-detail__col--info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-head {
  flex-shrink: 0;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-head .product-detail__meta {
  margin-bottom: 0;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-top: 0;
  margin-top: 0;
}

/* ????? ??? ????????: ?? ???????? ???? ?? N +? ??? scale ?? hover */
.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-body:has(.product-detail__actions--no-size) {
  overflow: visible;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-body .product-detail__price-row {
  margin-top: 0.75rem;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

/* ??? ?????? ? ????? ???????? ?????, ??? ??????? */
.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-body .product-detail__price-row.price-row:not(.price-row--sale) {
  padding: 0;
}

.product-detail-page-body .product-detail--desktop .product-detail__col--info .product-detail__info-body .product-detail__description {
  margin-top: 1.25rem;
  max-width: 32rem;
}

/* ????? ????????? ? ??????? ???? article, ?? ??????? ?? ??????? */
.product-detail-page-body .product-detail--desktop .product-detail__volley--desktop {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  line-height: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

/* ?????? ???? ?????????? ? ???????? ?? ???????? ?????? ??????? ? .cart-page__bottom (??? ? ???????), ???? ? ????? ??? ?????? ??????? */
.product-detail__bottom {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: -1.75rem;
  padding: 0.75rem 1.5rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.product-detail__bottom .product-detail__back,
.cart-page__bottom .product-detail__back {
  margin: 0;
  padding: 0;
  border: none;
}

/* ?????? ???? ?????? (? + ?????? ??????) ?????? ?? ?????????; ?? ???????? ?? ?????????? */
@media (min-width: 768px) {
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom {
    display: none;
  }
}

.product-detail__volley-img {
  display: block;
  width: clamp(100px, 15vw, 160px);
  height: auto;
  object-fit: contain;
}

/* ?? ???????? ??????? ? ??????? ?????? (????? ??????), ??? sticky */
.product-detail--desktop .product-detail__col--gallery .product-detail__gallery {
  position: static;
}

.product-detail__main-img-wrap {
  position: relative;
  background: #f1f5f9;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
}

.product-detail__main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ?????? ???? ??? ???????? ????? ???? ??? ?????? (????????? ???????) ? ??????? crossfade */
.product-detail__main-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.product-detail__main-img-wrap--swipeable .product-detail__main-img {
  transition: opacity 0.3s ease-out;
}
.product-detail__main-img-wrap--swipeable .product-detail__main-img--fade-out {
  opacity: 0;
}
.product-detail__main-img-overlay--fade-in {
  opacity: 1;
  z-index: 2;
}
.product-detail__main-img-wrap--swipeable .product-detail__badge {
  z-index: 3;
}

.product-detail__badge {
  top: 1rem;
  left: 1rem;
}

/* ?????????????? ?? ????????? ?? ????????: ?????? ?? ?????, ??? ? hero-slider */
.product-detail__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.product-detail__gallery-nav svg {
  display: block;
}
.product-detail__main-img-wrap--has-nav:hover .product-detail__gallery-nav {
  opacity: 1;
}
.product-detail__gallery-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.product-detail__gallery-nav--prev {
  left: 1rem;
}
.product-detail__gallery-nav--next {
  right: 1rem;
}

.product-detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-detail__thumb {
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.product-detail__thumb:hover {
  border-color: #94a3b8;
}

.product-detail__thumb--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ??????????? ???????, ????? ? ?????? ??? ???? ? ????????? ????, ????? ?? ??????? ?? ?????? ? ???????? */
.product-detail__gallery--empty .product-detail__main-img-wrap {
  max-width: 18rem;
  width: 100%;
}

/* ??????????? ???????, ????? ? ?????? ??? ???? ? ????????? ??? ?????? ????? ????????? */
.product-detail__gallery--empty .product-detail__thumbs--placeholders {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-detail__thumb--placeholder {
  display: inline-flex;
  cursor: default;
  opacity: 0.5;
  border-style: dashed;
  pointer-events: none;
  box-sizing: border-box;
}

.product-detail__no-photo-caption {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* ????? ???? ??? ? ?????????? ????? (????????) ????, ????? ?? ??????? ?? ????? ?????? ???? ???? */
.product-detail__gallery--empty + .product-detail__info-head {
  margin-top: 1rem;
}

.product-detail__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.product-detail__article {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}

/* ??????? ? ??? ?????? ?? ????? ?????? ??? ????????? */
.product-detail__article-line-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}
.product-detail__article-line {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
.product-detail__article-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.product-detail__article-copy:hover {
  color: #334155;
}
.product-detail__article-copy-icon {
  display: block;
  transition: transform 0.2s ease;
}
.product-detail__article-copy:hover .product-detail__article-copy-icon {
  transform: scale(1.1);
}
.product-detail__article-copy--copied {
  color: #059669;
}

.product-detail__meta {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-detail__meta a {
  color: #2563eb;
  text-decoration: none;
}

.product-detail__meta a:hover {
  text-decoration: underline;
}

.product-detail__price-row {
  margin-bottom: 1rem;
  margin-top: 0;
  padding: 0;
  gap: 0.75rem;
}

.product-detail__price-row .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.product-detail__price-row.price-row--sale .price {
  color: #dc2626;
}

.product-detail__price-row .old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 1.125rem;
  font-weight: 600;
}

.product-detail__sizes-label {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.product-detail__sizes .product-sizes-line {
  flex-wrap: wrap;
}

.product-detail__sizes {
  margin-bottom: 1.25rem;
}

.product-detail__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.product-detail__description-text {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0;
}

.product-detail__note {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.shop-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.shop-link:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  /* ??????? ?????? ?? ?????????: ??????, ???????, ????????? ??????? ? ??????????? ??? ???????? ????? */
  .breadcrumb {
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    min-width: 0;
  }

  .breadcrumb__inner {
    gap: 0.35rem;
  }

  .breadcrumb a {
    font-weight: 600;
  }

  .breadcrumb__current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ???????? ??????: ?????? ???????-????, ???????? ????????? */
  .product-detail--desktop {
    display: none !important;
  }

  .product-detail--mobile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  /* ??????? ????? (????????, ???????): ????????? ????, ?? ?????????? */
  .product-detail-page-body .product-detail-page__container > .product-detail__mobile-head {
    flex-shrink: 0;
    background: #fff;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .product-detail--mobile .product-detail__gallery {
    position: static;
    min-height: min-content;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
  }
  .product-detail--mobile .product-detail__main-img-wrap {
    max-height: min(55vh, 26rem);
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, 28rem);
    width: 100%;
  }

  /* ???????? ?????? ?? ?????????: ????????? (??????? ??????) ?? ?????????? */
  .product-detail-page-body .breadcrumb.product-detail-page__breadcrumb {
    display: none;
  }

  /*
   * ??????-????????? = body, ????? position: sticky; bottom: 0 ?? ????????????? ? ???? ??????.
   * ??? overflow: visible ? body ?????? ???? ?? ????????? ? sticky ????? ?? ????????? ? viewport.
   */
  .product-detail-page-body {
    height: var(--tv-app-height);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* ???????? ?????? ?? ?????????: ???? ?????? ? body, ??????? ? ???????, ????? ????? */
  .product-detail-page-body .shop-main.product-detail-page__main {
    display: block;
    padding-top: 7.25rem;
    flex: none;
    min-height: 0;
  }

  .product-detail-page-body .shop-main__inner > .container.product-detail-page__container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(var(--tv-app-height) - 7.25rem); /* ??????? ?? ???? ????? ? ????? ?????????? ????, ??? ? ???????? */
    padding-bottom: 0;
  }
  .product-detail-page-body .product-detail-page__container #product-detail-mobile {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
  }
  .product-detail-page-body .product-detail-page__container > .cart-page__bottom {
    flex-shrink: 0;
  }

  .product-detail-page-body .shop-footer {
    flex: none;
  }

  /* ???????? ? ???? ?????? ?? ????????? (????? ???????? ? .product-detail__mobile-head) */
  .product-detail__mobile-head .product-detail__title,
  .product-detail--mobile .product-detail__title {
    font-size: clamp(0.8rem, 5vw, 1.75rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ??????? ? ???? (???????, ????) ? ???? ?????? ?? ????????? */
  .product-detail__mobile-head .product-detail__info-head .product-detail__article-line-wrap,
  .product-detail__mobile-head .product-detail__info-head .product-detail__meta,
  .product-detail--mobile .product-detail__info-head .product-detail__article-line-wrap,
  .product-detail--mobile .product-detail__info-head .product-detail__meta {
    display: none;
  }
  .product-detail__mobile-head .product-detail__info-head .product-detail__article-line-wrap,
  .product-detail--mobile .product-detail__info-head .product-detail__article-line-wrap {
    display: inline-flex;
    align-items: center;
    margin-right: 0.25em;
  }
  .product-detail__mobile-head .product-detail__info-head .product-detail__article-line,
  .product-detail--mobile .product-detail__info-head .product-detail__article-line {
    margin-right: 0;
  }

  .product-detail--mobile .product-detail__mobile-body {
    padding-bottom: 0;
  }
  .product-detail--mobile .product-detail__description {
    margin-top: -0.75rem;
    max-width: 28rem;
  }
  .product-detail--mobile .product-detail__price-row {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .product-detail--mobile .product-detail__price-row .price {
    font-size: 1.5rem;
  }
  .product-detail--mobile .product-detail__price-row .old-price {
    font-size: 1.125rem;
  }
  /* ?? ????????? ??????? ?????????? ???????? (??? ?? ????????), ????? ? ? ??????? ?? ?????? ? ???????/?????? ?????? */

  /* ????????? ?????? ?? ?????? ? ??? ? ??????? */
  .product-detail__mobile-head .product-detail__info-head .product-detail__title.cart-page__title,
  .product-detail--mobile .product-detail__info-head .product-detail__title.cart-page__title {
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  /* ?????? ???? ?????? ? ?????? (??? cart-footer): ? .cart-page__bottom, ?? ???? */
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 -1rem 0;
    padding: 1rem;
    padding-bottom: max(1rem, var(--tv-bottom-inset));
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom.product-detail__actions--no-size {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom .product-detail__btn-row {
    justify-content: center;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom.product-detail__actions--no-size .product-detail__qty-row--stepper {
    margin-bottom: 0;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--bottom .product-detail__qty-row--stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  /* no-size: ?? N +? ? ??? ?? ?????, ??? ?? ???????? (??????? ????????) */
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style,
  .product-detail--mobile .product-detail__actions--no-size .product-detail__qty-wrap--card-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 7.5rem;
    padding: 0 1rem;
    border: 2px solid #9acea5;
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(110, 231, 183, 0.2);
    box-shadow: 0 1px 3px rgba(52, 211, 153, 0.2);
  }
  .product-detail--mobile .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-btn {
    width: 2rem;
    min-height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #9acea5;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .product-detail--mobile .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input {
    width: 2.5rem;
    min-height: 2.25rem;
    border: none;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9acea5;
    background: transparent;
    -moz-appearance: textfield;
  }
  .product-detail--mobile .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-outer-spin-button,
  .product-detail--mobile .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-inner-spin-button,
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-outer-spin-button,
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-btn,
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input {
    width: 2rem;
    min-height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #9acea5;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -moz-appearance: textfield;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input {
    width: 2.5rem;
    font-size: 0.9rem;
  }
  .product-detail__size-trigger-wrap {
    margin-bottom: 0.75rem;
  }
  .product-detail__size-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
  }
  .product-detail__size-trigger:hover {
    background: #f8fafc;
    border-color: #94a3b8;
  }
  .product-detail__size-trigger-arrow {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
  }
  /* ????? ?? ?????????: ???????? ? ???? ?????? ? ? ????? .cart-page__bottom ????? ?????? */
  .product-detail-page-body .cart-page__bottom {
    position: relative;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__volley--bottom {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 0.25rem;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 2;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    pointer-events: none;
    line-height: 0;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__volley--bottom .product-detail__volley-img {
    width: clamp(80px, 20vw, 120px);
    height: auto;
    object-fit: contain;
  }
}

/* ????????? ????? ? ????? ????? ? ?????? ?? 768px; ? 768px ?????????? ???????-?????? ??? ?????? */
@media (min-width: 768px) {
  .product-detail__mobile-head {
    display: none !important;
  }
  .product-detail-page-body .cart-page__bottom .product-detail__volley--bottom {
    display: none !important;
  }
}

.product-card__link-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* ??? ?? ???? ?????? ?? ?????? ????????? ??????? ?? ???? ????? (?????? ?????????? ? :focus-visible) */
.product-card__link-area:focus:not(:focus-visible) {
  outline: none;
}

.product-card__link-area:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.product-card__link-area:hover .name {
  color: #2563eb;
  transform: scale(1.03);
}

.product-card .name {
  padding: 1rem 1rem 0;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease, transform 0.25s ease;
  transform-origin: left top;
  /* Title stays under image; long names wrap within a fixed line budget */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card__article {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.15rem;
  min-width: 0;
}

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

.product-card__article-copy {
  flex-shrink: 0;
  padding: 0.15rem;
}

@media (max-width: 48em) {
  .product-card .name:not(.name--skeleton) {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
  }

  .product-card .name:not(.name--skeleton) .tv-marquee-title__heading {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
  }

  .product-card__link-area:hover .name:not(.name--skeleton) {
    transform: none;
  }

  .product-card__article {
    display: none;
  }
}

.product-card .meta {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

/* Article + meta + price: pinned to bottom of link-area (title stays under image) */
.product-card__details {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  padding-top: 0.5rem;
}

.product-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.price-row__prices {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.price-row--sale .price-row__prices {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.product-card .price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  padding: 0;
}

.product-card .price-row--sale .price {
  color: #dc2626;
}

.price-row .old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-row--sale .old-price {
  align-self: flex-start;
  margin: 0;
}

/* ??????? ??? ????????? ????????? ? ???? ?????? + ??? + ??????? ? ?????????? */
.product-sizes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
  position: relative;
  z-index: 5; /* ???? link-area ? add-?????, ????? ??????? ? ?????? ???? ??????????? */
}

/* React/legacy parity: ??????? ?????????? ?? ???????? (??? ? legacy product_card_item.html). */

.product-sizes-line {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  max-height: 2.65rem;
}

.product-sizes {
  z-index: 2;
}

.product-sizes-more {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-sizes-more-icon {
  display: block;
}

.product-sizes-more:hover {
  background: #e2e8f0;
  color: #334155;
}

.product-sizes-more[hidden] {
  display: none;
}

.product-sizes-popover {
  position: absolute;
  right: 1rem;
  top: 100%;
  margin-top: 0.15rem;
  z-index: 50;
  min-width: 10rem;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.08);
}

.product-sizes-popover[hidden] {
  display: none;
}

.product-sizes-popover-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-sizes-popover-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.product-sizes-popover-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.product-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-size-pill:hover {
  background: rgba(239, 246, 255, 0.92);
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.product-detail__sizes--static .product-size-pill--static {
  cursor: default;
  pointer-events: none;
}
.product-detail__sizes--static .product-size-pill--static:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: none;
}

.product-size-pill:active {
  transform: scale(0.98);
}

.product-size-pill em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  margin-left: 0.15em;
}

/* ????? ??? ?? TotalVolleySite */
.shop-footer {
  background: #0f172a;
  color: #fff;
  padding: 2rem 0;
  margin-top: auto;
  flex-shrink: 0;
}

.shop-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .shop-footer .container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shop-footer h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.shop-footer p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.shop-footer .copy {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.shop-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.shop-footer a:hover {
  text-decoration: underline;
}

/* ?????? ????????? ????????: ?? ??? ?????? ?????, ??? ???? ? ???????? */
.products-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 14rem;
}

.products-empty__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.products-empty__img {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 200px;
  object-fit: contain;
}

.products-empty__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #334155;
  margin: 0 0 0.5rem;
}

.products-empty__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.products-empty__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.products-empty__link:hover {
  background: #1d4ed8;
}

/* ?????? ????????? */
.shop-muted {
  color: #64748b;
  font-size: 0.95rem;
}

.shop-muted a {
  color: #2563eb;
  text-decoration: none;
}

.shop-muted a:hover {
  text-decoration: underline;
}

/* ??????? ? ?????? */
.order-errors {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.order-errors li {
  margin: 0.25rem 0;
}

.order-errors li:first-child {
  margin-top: 0;
}

.order-errors li:last-child {
  margin-bottom: 0;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.order-items-table th,
.order-items-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.order-items-table th {
  font-weight: 600;
  background: #f1f5f9;
}

/* ??? ???????? ????????? ?????? (?????????) ??? */
.order-detail-page-body {
  min-height: var(--tv-app-height, 100vh);
  display: flex;
  flex-direction: column;
}

.order-detail-page-body .shop-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-detail-page-body .shop-main__inner > .container.order-detail-page {
  flex: 1 1 0;
  min-height: calc(var(--tv-app-height, 100vh) - 5rem);
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

/* ??????? ? ????? ????? ?? ??????, ??? ? ??????? / ?????????? ?????? / ?????? ?????? */
.order-detail-page__content {
  max-width: 56rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-detail-page__title {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.order-detail__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

.order-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-detail-card__heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.order-detail-info {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.5rem;
}

.order-detail-info__term {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.order-detail-info__value {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.order-detail-info__value--status {
  font-weight: 600;
  color: #2563eb;
}

.order-detail-card--info {
  flex-shrink: 0;
}

.order-detail-card--items {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.order-detail-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  overflow-x: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.order-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1rem 1rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.order-detail-item:last-child {
  border-bottom: none;
}

.order-detail-item__img-wrap {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8fafc;
}

.order-detail-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.order-detail-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.order-detail-item__article {
  font-size: 0.8rem;
  color: #64748b;
}

.order-detail-item__product-type {
  font-size: 0.8rem;
  color: #94a3b8;
}

.order-detail-item__title {
  font-weight: 500;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.3;
}

.order-detail-item__variant {
  font-size: 0.85rem;
  color: #64748b;
}

.order-detail-item__price-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 7rem;
}

.order-detail-item__price {
  color: #64748b;
  font-size: 0.875rem;
  white-space: nowrap;
}

.order-detail-item__total {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.order-detail-delivery-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem 0;
  font-size: 1rem;
  color: #475569;
}

.order-detail-delivery-row__label {
  color: #64748b;
}

.order-detail-delivery-row__value {
  font-weight: 600;
  color: #0f172a;
}

.order-detail-total {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.order-detail-total__label {
  color: #64748b;
}

.order-detail-page__bottom {
  flex-shrink: 0;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.order-detail-delivery-row--bottom {
  margin-bottom: 0.5rem;
}

.order-detail-total--bottom {
  max-width: 56rem;
}

/* React: как корзина — тело растягивается, «Итого» всегда внизу */
.order-detail-page-body .shop-main__inner > .container.order-detail-page.order-detail-page--react,
.order-detail-page-body .shop-main__inner > .mantine-Container-root.order-detail-page.order-detail-page--react {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  max-width: 100%;
  padding-bottom: 0;
  min-width: 0;
  overflow-x: hidden;
}

.order-detail-page-body .shop-main__inner > .container.order-detail-page.order-detail-page--react > .order-detail-page-react,
.order-detail-page-body .shop-main__inner > .mantine-Container-root.order-detail-page.order-detail-page--react > .order-detail-page-react,
.order-detail-page--react .order-detail-page-react {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.order-detail-page-react__body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.order-detail-page-react__bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  padding-bottom: var(--tv-bottom-inset);
}

.order-detail-page--react .order-detail-page__content {
  gap: 1.25rem;
}

.order-detail-page--react .order-detail-page__content > h1.order-detail-page__title.filter-panel__title--main {
  margin-top: 0;
  margin-bottom: 0;
}

/* Ряд по контенту (не на весь flex); обе карточки одной высоты */
.order-detail__grid--react {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  overflow: visible;
  margin-bottom: 0;
  align-items: start;
  align-content: start;
}

@media (min-width: 48em) {
  .order-detail__grid--react {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    align-content: start;
  }
}

.order-detail-card--info-react {
  min-width: 0;
  height: auto;
  align-self: start;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 48em) {
  .order-detail-card--info-react {
    /* задаёт высоту ряда (~65%, кап 70%); «Состав» stretch = та же высота */
    min-height: calc((100dvh - 12rem) * 0.65);
    max-height: calc((100dvh - 12rem) * 0.7);
    height: auto;
    align-self: stretch;
  }
}

.order-detail-card--composition-react {
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}

@media (min-width: 48em) {
  .order-detail-card--composition-react {
    align-self: stretch;
    max-height: none;
    min-height: 0;
    height: auto;
  }
}

.order-detail-page--react .order-detail-card__title.filter-panel__title--main {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.order-detail-info-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
  margin-right: -0.2rem;
  scrollbar-width: thin;
}

.order-detail-info-row--multiline {
  /* подпись слева, адрес справа с переносами — без переноса label вниз */
  width: 100%;
}

.order-detail-info-row--multiline .mantine-Text-root:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-detail-items-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
  margin-right: -0.2rem;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-detail-info-scroll::-webkit-scrollbar,
.order-detail-items-scroll::-webkit-scrollbar {
  width: 6px;
}

.order-detail-info-scroll::-webkit-scrollbar-thumb,
.order-detail-items-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.order-detail-item--react {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.order-detail-item--react:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-detail-item--react:first-child {
  padding-top: 0;
}

.order-detail-item--react .order-detail-item__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.order-detail-item--react .order-detail-item__img-wrap {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.order-detail-item--react .order-detail-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.order-detail-item--react .order-detail-item__info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-detail-item--react .order-detail-item__article-line {
  margin: 0;
}

.order-detail-item--react .order-detail-item__title--fit.cart-item__title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.order-detail-item--react .order-detail-item__price-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

.order-detail-page-react__bottom .cart-footer.cart-footer--react {
  margin-left: 0;
  margin-right: 0;
  /* как .cart-footer--react: отступ слева/справа от края ряда */
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-top: 1px solid #e2e8f0;
  box-shadow: none;
  background: transparent;
}

.order-detail-page-react__bottom .cart-footer__inner {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-sizing: border-box;
}

.order-detail-page-react__bottom .cart-footer__total-wrap {
  width: 100%;
  justify-content: flex-end;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.order-detail-page-react__bottom .cart-footer__spacer {
  visibility: hidden;
  pointer-events: none;
  min-height: 1px;
}

.order-detail-page__bottom--react {
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: none;
}

.order-detail-page__bottom--react .cart-footer.cart-footer--react {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid #e2e8f0;
  box-shadow: none;
  background: transparent;
}

.order-detail-page__bottom--react .cart-footer__total-wrap {
  width: 100%;
  justify-content: flex-end;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cart-footer__inner--solo-total {
  justify-content: flex-end;
}

.cart-footer__inner--solo-total .cart-footer__total-wrap {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

/* ??? ???????? ????????? ??????? ??? */
.order-lookup-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.order-lookup-page-body .shop-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-lookup-page-body .shop-main__inner > .container.order-lookup-page {
  flex: 1 1 0;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.order-lookup-page {
  padding-bottom: 2rem;
}

/* ?? ?? ?????? ? ?????????????, ??? ? ??????? ? ?????????? ?????? */
.order-lookup-page__content {
  max-width: 56rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-lookup-page__title {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* React: ????????? ?????? .cart-page-react__head ?????? ???? ??? ????? margin, ??? ? ??????? */
.cart-page-react__head .order-lookup-page__title {
  margin-top: 0;
  margin-bottom: 0;
}

.order-lookup-page__bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
}

.order-lookup-page__volley {
  margin-bottom: 0.75rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.order-lookup-page__back {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

.order-lookup-page__volley-img {
  display: block;
  width: clamp(100px, 15vw, 160px);
  height: auto;
  object-fit: contain;
}

/* ??????????????? "?????-??????" (???????? ? ?.?.) */
.tv-decor-icon {
  margin-bottom: 0.75rem;
  line-height: 0;
  display: flex;
  justify-content: center;
}
.tv-decor-icon__img {
  display: block;
  width: clamp(100px, 15vw, 160px);
  height: auto;
  object-fit: contain;
}

.tv-decor-icon--sm .tv-decor-icon__img {
  width: clamp(96px, 12vw, 140px);
}

/* ???????? ?????? (React): ?????-???????? ?????? ????? ? ?????? ???????? */
.product-detail-page-react__decor {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  opacity: 0.95;
}
.product-detail-page-react__decor .tv-decor-icon {
  margin-bottom: 0;
}

.order-lookup-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-lookup-card__intro {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.order-lookup-card__error {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
}

.order-lookup-form__row {
  margin-bottom: 1.25rem;
}

.order-lookup-form__label {
  display: block;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.order-lookup-form__input {
  width: 100%;
  max-width: 12rem;
  padding: 0.65rem 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-align: center;
  color: #0f172a;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.order-lookup-form__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.order-lookup-form__input::placeholder {
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.order-lookup-form__actions {
  margin-top: 0.5rem;
}

.order-lookup-form__submit {
  padding: 0.7rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.order-lookup-form__submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.order-lookup-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* React: ???????? ?????? ? ??? ???????/?????????? (?????????, ??????, Mantine-???? ??? ??????-?????) */
.order-lookup-page-body .shop-main__inner > .container.order-lookup-page.order-lookup-page--react {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  max-width: 100%;
  padding-bottom: var(--tv-bottom-inset);
}

.order-lookup-page--react {
  padding-bottom: 0;
}

.order-lookup-page--react .order-lookup-page-react {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.order-lookup-page--react .order-lookup-page__content {
  gap: 1.25rem;
}

.order-lookup-page--react .order-lookup-page__content > h1.order-lookup-page__title.filter-panel__title--main {
  margin-top: 0;
  margin-bottom: 0;
}

.order-lookup-page--react .order-lookup-page__bottom--react {
  margin-top: auto;
  padding-top: 0.5rem;
}

.order-lookup-form__mantine {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-lookup-page--react .order-lookup-form__field {
  max-width: 12rem;
}

.order-lookup-page--react .order-lookup-form__field input.order-lookup-form__input--mantine {
  width: 100%;
  max-width: 12rem;
  padding: 0.65rem 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-align: center;
  color: #0f172a;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  height: auto;
  min-height: 2.75rem;
}

.order-lookup-page--react .order-lookup-form__field input.order-lookup-form__input--mantine:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.order-lookup-page--react .order-lookup-form__field input.order-lookup-form__input--mantine::placeholder {
  color: #94a3b8;
  letter-spacing: 0.1em;
}

/* ??? ??????? ??? */
/* ??? ? ???????: ??????? ?? ?????? ?????? ? ????? ?????????? ?? ???????, ?? ???? ????? ????????? */
.catalog-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main ?????? ?? ???????? (min-height: auto), ????? ??? ?????? ??????? ????? ??? ????? ???????? */
.catalog-page-body .shop-main {
  flex: 1 1 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.catalog-page-body .shop-main__inner > .container {
  flex: 1 1 auto;
  min-height: calc(100vh - 5rem); /* ??? 1 ?????? ??????? ?? ?????? ?????? ? ????? ?? ??????? */
  display: flex;
  flex-direction: column;
  width: 100%;
}

 .catalog-page-body .catalog-layout {
  flex: 1 1 auto;
  min-height: 0;
}

.cart-page-body {
  min-height: var(--tv-app-height);
  display: flex;
  flex-direction: column;
}

.cart-page-body .shop-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-page-body .shop-main__inner > .container.cart-page {
  flex: 1 1 0;
  min-height: calc(var(--tv-app-height) - 5rem); /* ??????? ?? ?????? ?????? ? ????? ????? ?????????? ????? ?? ??????? */
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* React-???????: ??? checkout-page--react ? flex ?? .shop-main__inner, ??? ??????? min-height ?? ??????????. */
.cart-page-body .shop-main__inner > .container.cart-page.cart-page--react {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  /* ????????? ????? ??? ??????? ? ??????? (??? ??????? ????? ????? margin-top: auto ? .cart-page-react__bottom) */
  padding-bottom: 0;
  min-width: 0;
  overflow-x: hidden;
}

.cart-page-body .shop-main__inner > .container.cart-page.cart-page--react > .cart-page-react {
  flex: 1 1 0;
  min-height: 0;
}

.cart-page__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cart-page__scroll > .cart-content {
  flex: 1 1 0;
}


.cart-scroll__volley {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  line-height: 0;
  pointer-events: none;
  z-index: 0;
  text-align: right;
}

.cart-scroll__volley-img {
  max-width: 8rem;
  height: auto;
  display: inline-block;
  vertical-align: bottom;
}

.cart-page__bottom {
  flex-shrink: 0;
  padding-top: 0.5rem;
  padding-bottom: var(--tv-bottom-inset);
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.cart-page__content {
  max-width: 56rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cart-page__title {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.cart-content {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cart-loading,
.cart-empty,
.cart-error {
  color: #64748b;
  margin: 1rem 0;
}

/* ?????? ???????: ????? + CTA ??? ????? ?????????? ???????? */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0.25rem 0 3rem;
  padding: 0;
}

.cart-empty-state__heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.order-success-page__heading {
  margin: 0;
}

.cart-empty-state__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #64748b;
}

.cart-empty-state a.order-lookup-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  text-decoration: none;
  box-sizing: border-box;
}

.cart-empty-state a.order-lookup-form__submit:hover {
  text-decoration: none;
}

@media (max-width: 48em) {
  .cart-empty-state {
    margin-bottom: 2.5rem;
  }
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cart-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  min-height: 4.5rem;
  background: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 1;
}

.cart-item:last-child {
  border-bottom: none;
}

/* Desktop: wrappers are transparent to the parent grid */
.cart-item__controls,
.cart-item__controls-actions {
  display: contents;
}

.cart-item__link {
  grid-column: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.cart-item__link:hover .cart-item__title {
  color: #2563eb;
}

.cart-item__img-wrap {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #f8fafc;
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cart-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-item__article {
  font-size: 0.8rem;
  color: #64748b;
}

.cart-item__product-type {
  font-size: 0.8rem;
  color: #94a3b8;
}

.cart-item__title {
  font-weight: 500;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.cart-item__variant {
  font-size: 0.85rem;
  color: #64748b;
}

.cart-item__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 8rem;
}

.cart-item__price {
  color: #64748b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-item__price--unit {
  font-weight: 400;
  font-size: 0.85rem;
}

.cart-item__qty-wrap {
  display: flex;
  align-items: center;
}

.cart-item__qty-wrap--fixed .cart-item__qty-fixed {
  display: inline-block;
  width: 2.25rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
}

.cart-item__qty-wrap--fixed {
  /* ????????? ??????, ????? ???????? ? ?????? (??? ????????) ????????? ????????? */
  min-width: 5.75rem; /* 1.75 + 2.25 + 1.75 */
  justify-content: center;
}

.cart-item__qty {
  width: 3.5rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  -moz-appearance: textfield;
}

.cart-item__qty::-webkit-outer-spin-button,
.cart-item__qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__total {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cart-item__remove:hover {
  border-color: #fecaca;
  background: #fef2f2;
}

.cart-item__remove:hover .cart-item__remove-icon {
  filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(3000%) hue-rotate(350deg);
}

.cart-item__remove-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  transition: filter 0.15s;
}

.cart-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 -1rem 0;
  padding: 0 1rem;
}

.cart-footer__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 0;
  width: 100%;
}

.cart-footer__checkout {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
}

.cart-footer__total-wrap {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cart-footer__total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cart-footer__total-label {
  font-size: 0.95rem;
  color: #64748b;
}

.cart-footer__total-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.cart-footer__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.cart-footer__checkout:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.cart-footer__checkout:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

button.cart-footer__checkout {
  font-family: inherit;
}

button.cart-footer__checkout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 0.5rem 0.65rem;
    align-items: start;
    padding: 0.75rem 1rem;
    min-height: 0;
  }

  .cart-item__link {
    grid-column: 1 / 3;
    grid-row: 1;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .cart-item__img-wrap {
    width: 3.75rem;
    height: 3.75rem;
    flex-shrink: 0;
  }

  /* Mobile: only product name under the thumb — hide variant / unit lines */
  .cart-item__variant,
  .cart-item__price--unit {
    display: none;
  }

  .cart-item__info {
    min-width: 0;
  }

  .cart-item__controls {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    min-width: 4.75rem;
  }

  .cart-item__controls-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .cart-item__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: 0;
    min-width: 0;
  }

  .cart-item__price-wrap .cart-item__total {
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .cart-item__qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .cart-item__remove-wrap {
    display: flex;
    align-items: center;
  }

  /* Desktop stepper width not needed on mobile ? same badge slot for all types */
  .cart-item__qty-wrap--fixed {
    min-width: 0;
  }

  .cart-footer__total-label {
    display: none;
  }

  .cart-footer__total-wrap {
    justify-content: center;
  }

  .cart-footer__total {
    width: 100%;
    justify-content: center;
  }

  .cart-footer__total-value {
    font-size: 1.125rem;
    text-align: center;
  }

  .cart-footer__total--open-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    user-select: none;
  }

  .cart-footer__total--open-cart:hover,
  .cart-footer__total--open-cart:focus-visible {
    outline: none;
  }

  .cart-footer__total--open-cart .cart-footer__total-value {
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
    color: #2563eb;
  }

  .cart-footer__total-cart-icon {
    display: block;
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    object-fit: contain;
    /* Make monochrome SVG read as blue CTA */
    filter: invert(34%) sepia(98%) saturate(1456%) hue-rotate(204deg)
      brightness(95%) contrast(96%);
  }

  .cart-footer__total--open-cart:hover .cart-footer__total-cart-icon,
  .cart-footer__total--open-cart:focus-visible .cart-footer__total-cart-icon {
    filter: invert(27%) sepia(90%) saturate(1800%) hue-rotate(204deg)
      brightness(90%) contrast(101%);
  }

  .cart-footer__total-wrap:has(.cart-footer__total--open-cart) {
    border-color: #93c5fd;
    background: #eff6ff;
  }
}

/* ??? React: ??????? (Mantine) ? ?? ?? .cart-list / .cart-item, ???? ??????? ? ????? ???????? ??? */
.cart-page-react {
  max-width: 56rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 11.5rem);
}

.cart-page-react__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
}

.cart-page-react__scroll {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  /* ???????? ?????? ?????????, ?? ????????? ?????? */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge old */
}

.cart-page-react__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome/Safari */
}

.cart-page-react__bottom {
  flex-shrink: 0;
  padding-top: 0.75rem;
  padding-bottom: var(--tv-bottom-inset);
  margin-bottom: 0;
}

/* ???????: ?????? ? ??????? ? ???? ????????? ?????????? */
.cart-page-body .cart-page-react > .cart-page-react__bottom {
  margin-top: auto;
}

.cart-page-react__head {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

/* React-???????: ??? ?? ????? ?????????, ??? ???????; ???????? ?? ????????? ?? ?????? ? ?????????? */
.catalog-page-react__head {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.catalog-page-react__head .cart-page__title {
  margin-top: 0;
  margin-bottom: 0;
}

.catalog-page-react__layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.catalog-page-react__filters {
  flex: 0 0 16.5rem;
  width: 16.5rem;
}

.catalog-page-react__filters-panel {
  position: sticky;
  top: 5.5rem;
  max-height: calc(var(--tv-app-height) - 6rem);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.catalog-page-react__filters-actions {
  position: sticky;
  bottom: 0;
  padding-top: 0.25rem;
  background: #fff;
}

.catalog-page-react__products {
  flex: 1;
  min-width: 0;
}

.catalog-filter-fab {
  display: none;
}

@media (max-width: 768px) {
  .catalog-page-react__layout {
    display: block;
  }

  .catalog-page-react__filters {
    display: none;
  }

  .catalog-page-react__products {
    padding-bottom: 5rem;
  }

  .catalog-filter-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + var(--tv-bottom-inset, 0.75rem));
    z-index: 9000;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(
      --tv-header-gradient,
      linear-gradient(to right, #2563eb, #1d4ed8, #1e40af)
    );
    box-shadow:
      0 8px 20px rgba(29, 78, 216, 0.38),
      0 2px 6px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    animation: catalog-filter-fab-float 2.8s ease-in-out infinite;
  }

  .catalog-filter-fab:disabled {
    opacity: 0.55;
    cursor: default;
    animation: none;
  }

  .catalog-filter-fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
  }
}

@keyframes catalog-filter-fab-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filter-fab {
    animation: none;
  }
}

/* React-???????? ??????: ????????? ??? ? ??????? / ????????; ?????? ?? ????? ?????? Mantine Stack */
.product-detail-page-react__head {
  flex-shrink: 0;
  width: 100%;
}

.product-detail-page-react__head .cart-page__title {
  margin-top: 0;
  margin-bottom: 0;
}

/* Mobile product title: single-line auto marquee when overflowing */
.tv-marquee-title {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tv-marquee-title__measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.tv-marquee-title__heading {
  margin: 0;
  overflow: hidden;
}

.tv-marquee-title__track {
  display: inline-flex;
  align-items: baseline;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
}

.tv-marquee-title__chunk {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 48em) {
  .tv-marquee-title--active .tv-marquee-title__track {
    animation: tv-title-marquee 14s linear infinite;
  }

  .tv-marquee-title--active .tv-marquee-title__heading {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 0.75rem,
      #000 calc(100% - 0.75rem),
      transparent 100%
    );
  }
}

@media (min-width: 48.01em) {
  .tv-marquee-title--active .tv-marquee-title__track {
    animation: none;
  }

  .tv-marquee-title__track {
    display: block;
    white-space: normal;
  }

  .tv-marquee-title__chunk[aria-hidden='true'] {
    display: none;
  }
}

@keyframes tv-title-marquee {
  0%,
  12% {
    transform: translateX(0);
  }
  88%,
  100% {
    transform: translateX(calc(-50% - 1.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-marquee-title--active .tv-marquee-title__track {
    animation: none;
  }

  .tv-marquee-title__heading {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tv-marquee-title__chunk[aria-hidden='true'] {
    display: none;
  }
}

/* React-???????? ??????: ?????? ?????? ?????? ? ??????, ??? ??????? / ?????????? (?? position:fixed) */
.product-detail-page-body .shop-main__inner > .mantine-Container-root.product-detail-page--react {
  flex: 0 0 auto;
  min-height: auto;
  min-width: 0;
  max-width: var(--container-size-lg, 71.25rem);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible; /* ????????? ?????????? ?????? ?????????? */
  padding-bottom: 0;
}

/* ?? ?? ??? ?????? layout-?????????? (hop-main), ????? ?? ????????? ??????????? ??????. */
.product-detail-page-body .hop-main__inner > .mantine-Container-root.product-detail-page--react {
  flex: 0 0 auto;
  min-height: auto;
  min-width: 0;
  max-width: var(--container-size-lg, 71.25rem);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible !important;
  align-items: stretch;
  flex-wrap: nowrap;
  height: auto !important;
  max-height: none !important;
  padding-bottom: 0;
}

.product-detail-page-body .product-detail-page-react {
  flex: 0 0 auto;
  min-height: auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* ???????: ???????? ?????? ? ????????? ?? ??????? ???? ?????? (??? ????-?????? ? ?????? ??????) */
@media (min-width: 48em) {
  .product-detail-page-body .shop-main__inner,
  .product-detail-page-body .hop-main__inner {
    flex: 1 1 auto;
    /* ?? ??????? min-height: 0 ? ????? ???????????? ?????????? min-height: 100vh ? .shop-main__inner
       ? ??????? ????????? ?? ????????, ????? ????? ??? ?????????. */
    min-height: var(--tv-app-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .product-detail-page-body .shop-main__inner > .mantine-Container-root.product-detail-page--react,
  .product-detail-page-body .hop-main__inner > .mantine-Container-root.product-detail-page--react {
    flex: 1 1 auto;
    min-height: calc(var(--tv-app-height) - 5rem - 3.5rem);
  }

  .product-detail-page-body .product-detail-page-react--desktop {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .product-detail-page-body .product-detail-page-react--desktop .product-detail-page-react__stack {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ??????? ????? ????? ????????; ????? Mantine Grid ?????? ?????????????? ?????? ? ?? ????????? ?? ???? */
  .product-detail-page-body .product-detail-page-react--desktop .product-detail-page-react__col {
    min-width: 0;
    max-width: 100%;
  }

  .product-detail-page-body
    .product-detail-page-react--desktop
    .product-detail-page-react__col--gallery
    .mantine-Card-root {
    min-width: 0;
  }

  /* ???????? ??????: ?????? ??????? ?? ????????, ???????? ??????? ??? ????? ??????? */
  .product-detail-page-body .product-detail-page-react--desktop .product-detail-page-react__info-card {
    min-height: 11rem;
    width: 100%;
  }

  .product-detail-page-body .product-detail-page-react--desktop .product-detail-page-react__info-card .mantine-Stack-root {
    min-height: 0;
  }
}

@media (max-width: 48em) {
  /* ???????? Mantine-?????????? ? flex-??????? ?? ?????? viewport (??? ???????), ??? min-height:0 ?? inner */
  .product-detail-page-body .shop-main__inner,
  .product-detail-page-body .hop-main__inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: var(--tv-app-height);
    min-width: 0;
    box-sizing: border-box;
  }

  /* ??? ???????: ????? ??????????? ?????? ??????? ???????? ? ????? flex:1+min-height:0 ?????????? ??? */
  .product-detail-page-body .shop-main__inner > .mantine-Container-root.product-detail-page--react,
  .product-detail-page-body .hop-main__inner > .mantine-Container-root.product-detail-page--react {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(var(--tv-app-height) - 7.25rem - 2rem);
    width: 100%;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0;
  }

  .product-detail-page-body .product-detail-page-react--mobile {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(var(--tv-app-height) - 7.25rem - 2rem);
  }

  .product-detail-page-body .product-detail-page-react--mobile > .cart-page-react__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
  }

  .product-detail-page-body
    .product-detail-page-react--mobile
    .cart-page-react__scroll.product-detail-page-react__mobile-scroll {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    /* overflow-x:hidden ломает горизонтальный свайп галереи на iOS/WebKit */
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-detail-page-body
    .product-detail-page-react--mobile
    .cart-page-react__scroll.product-detail-page-react__mobile-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .product-detail-page-body .product-detail-page-react--mobile .product-detail-page-react__head,
  .product-detail-page-body .product-detail-page-react--mobile .product-detail-page-react__mobile-info {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .product-detail-page-body .product-detail-page-react--mobile .tv-fit-line-title {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
  }

  .product-detail-page-body .product-detail-page-react--mobile .product-detail-page-react__meta {
    width: 100%;
    min-width: 0;
  }

  .product-detail-page-body .product-detail-page-react--mobile .product-detail-page-react__meta-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.75rem, 3.4vw, 0.95rem);
  }

  .product-detail-page-body .product-detail-page-react--mobile .product-detail__article-copy {
    flex-shrink: 0;
  }

  .product-detail-page-body .product-detail-page-react--mobile > .cart-page-react__bottom {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: var(--tv-bottom-inset);
    background: #fff;
  }

  .product-detail-page-body .tv-product-mobile-footer__inner {
    width: 100%;
    min-width: 0;
  }

  .product-detail-page-body .tv-product-mobile-footer__inner .tv-actions--mantine,
  .product-detail-page-body .tv-product-mobile-footer__inner .tv-equal-actions {
    --tv-product-footer-btn-h: 2.75rem;
    width: 100%;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-equal-actions__slot {
    align-items: stretch;
  }

  /* Same height before/after add — match cart footer CTA */
  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-actions--mantine
    .mantine-Button-root,
  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-equal-actions
    .mantine-Button-root {
    --button-height: var(--tv-product-footer-btn-h);
    --button-padding-x: 0.65rem;
    --button-fz: clamp(0.6875rem, 4cqi, 1rem);
    height: var(--tv-product-footer-btn-h);
    min-height: var(--tv-product-footer-btn-h);
    padding-block: 0;
    font-size: clamp(0.6875rem, 4cqi, 1rem);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.5rem;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-actions--mantine
    .mantine-Button-root:hover,
  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-equal-actions
    .mantine-Button-root:hover {
    transform: translateY(-1px);
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-actions--mantine
    .mantine-Button-root:active,
  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .tv-equal-actions
    .mantine-Button-root:active {
    transform: translateY(0);
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine {
    height: var(--tv-product-footer-btn-h);
    min-height: var(--tv-product-footer-btn-h);
    max-height: var(--tv-product-footer-btn-h);
    align-self: stretch;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine
    .mantine-ActionIcon-root {
    --ai-size: var(--tv-product-footer-btn-h);
    height: 100%;
    width: 2.75rem;
    flex: 0 0 auto;
    font-size: 1.125rem;
    font-weight: 600;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine
    .mantine-NumberInput-root,
  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine
    .mantine-NumberInput-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine
    .mantine-NumberInput-input {
    --input-height: var(--tv-product-footer-btn-h);
    height: 100%;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
  }

  .product-detail-page-body
    .tv-product-mobile-footer__inner
    .product-card__qty-mantine:hover {
    transform: none;
  }
}

.product-detail-page-body .product-detail-page-react__grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ??????? Mantine Grid ?? ????????? min-width: auto ? ??????? ??????? ???????? ?????? ?? ????????? */
.product-detail-page-body .product-detail-page-react__grid [class*='mantine-Grid-col'] {
  min-width: 0;
}

.cart-page-react__back {
  font-size: 0.95rem;
}

.cart-page-react .cart-item__link {
  text-decoration: none;
  color: inherit;
}

.cart-page-react .cart-item__link:hover {
  text-decoration: none;
}

.cart-page-react .cart-item__title {
  transition: color 0.18s ease;
}

.cart-page-react .cart-item__link:hover .cart-item__title {
  color: #2563eb;
}

.cart-item__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #cbd5e1;
}

.cart-item__qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cart-item__qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cart-item__qty-badge:hover,
.cart-item__qty-badge:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
  outline: none;
}

.cart-item__qty-badge--readonly {
  cursor: default;
  pointer-events: none;
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  box-shadow: none;
}

.cart-item__qty-badge--readonly:hover,
.cart-item__qty-badge--readonly:focus-visible {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

/* Desktop: keep sneakers qty column width aligned with editable stepper */
@media (min-width: 769px) {
  .cart-item__qty-wrap:has(.cart-item__qty-badge--readonly) {
    min-width: 5.75rem;
    justify-content: center;
  }
}

.cart-item__qty-stepper-btn {
  width: 1.75rem;
  min-width: 1.75rem;
  padding: 0;
  border: none;
  background: #f8fafc;
  color: #334155;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cart-item__qty-stepper-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cart-item__qty-stepper-btn:active {
  background: #cbd5e1;
}

.cart-item__qty-stepper-btn--remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.cart-item__qty-stepper-btn--remove:hover {
  color: #dc2626;
  background: #fef2f2;
}

.cart-item__qty-stepper-btn--remove:active {
  background: #fee2e2;
}

.cart-item__qty--stepper {
  width: 2.25rem;
  min-width: 2.25rem;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 0.3rem 0.15rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  -moz-appearance: textfield;
}

.cart-item__qty--stepper::-webkit-outer-spin-button,
.cart-item__qty--stepper::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__remove-icon--svg {
  display: block;
}

.cart-item__remove--svg-btn {
  color: #64748b;
}

.cart-item__remove--svg-btn:hover {
  color: #dc2626;
}

.cart-item__remove--svg-btn:hover .cart-item__remove-icon--svg {
  filter: none !important;
}

.cart-footer--react {
  margin: 0;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0 0.75rem;
  background: #fff;
}

.cart-footer--react .cart-footer__inner {
  padding: 1rem 0;
}

.cart-footer__checkout-skeleton {
  min-height: 2.75rem;
}

.cart-footer__total-wrap--skeleton {
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 48em) {
  .cart-footer__total-wrap--skeleton {
    justify-content: center;
  }

  .cart-footer__total-wrap--skeleton .cart-footer__total {
    width: 100%;
    align-items: center;
  }
}

/* ??? ???????? ?????????? ?????? ??? */
.checkout-page-body {
  min-height: var(--tv-app-height);
  display: flex;
  flex-direction: column;
}

.checkout-page-body .shop-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.checkout-page-body .shop-main__inner > .container.checkout-page {
  flex: 1 1 0;
  min-height: calc(var(--tv-app-height) - 5rem);
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
  min-width: 0;
  overflow-x: hidden;
}

/* React checkout: ????? .container ? .checkout-page__content ????? ??????? ? ??? flex ??? ???? ???????,
   ????? ???? .checkout-page__columns (grid + 1fr + min-height:0) ???????????? ????? ?? ????. */
.checkout-page-body .shop-main__inner > .container.checkout-page > .checkout-page-react {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.checkout-page-react > .checkout-page__content {
  flex: 1 1 0;
  min-height: 0;
}

.checkout-page-react .checkout-page__columns {
  grid-template-rows: auto;
  align-content: start;
}

/* React checkout: ????? ?????? ? ???? ??????? main (??? ????-??????? ? ??????? ??????).
   ?????? ???? flex:1 ?????? .shop-main__inner ? ??? ??????? min-height: calc(100vh ? 5rem), ???????
   ?? ???????? ?????? ? ???????? ???????? ???? 100vh. */
.checkout-page-body .shop-main__inner > .container.checkout-page.checkout-page--react {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  /* Bottom inset lives on .cart-page-react__bottom */
  padding-bottom: 0;
}

.checkout-page-body .shop-main__inner > .container.checkout-page.checkout-page--react > .checkout-page-react {
  flex: 1 1 0;
  min-height: 0;
}

.checkout-page-body
  .shop-main__inner
  > .container.checkout-page.checkout-page--react
  .checkout-page-react
  > .checkout-page__content {
  flex: 1 1 0;
  min-height: 0;
}

.checkout-page-body
  .shop-main__inner
  > .container.checkout-page.checkout-page--react
  .checkout-page-react
  .checkout-page__columns {
  flex: 1 1 0;
  min-height: 0;
  grid-template-rows: auto;
  align-content: start;
}

/* ??? ? ???????: ?????? ?? ?????? ?????? ?????? ? .cart-page-react__bottom (padding-top), ??? +1rem ??? ?????????. */
.checkout-page-body .container.checkout-page.checkout-page--react .checkout-page__columns {
  padding-bottom: 0;
}

/* ?????????? ??????: ?????? ? ??????? ? ???? ?????????? + ????????? ????? ??????/????? */
.checkout-page-body .checkout-page__content > .cart-page-react__bottom {
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: var(--tv-bottom-inset);
}

/* ??????? ?????? ??? ?? ???????? ???????: ??? ?? ????????? (80rem), ??? ??????????????? position */
.checkout-page-body .breadcrumb {
  position: static;
  flex-shrink: 0;
}

.checkout-page__content {
  max-width: 56rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.checkout-page-body .checkout-page__title {
  flex-shrink: 0;
}

.checkout-page__columns {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 20rem;
  grid-template-rows: auto;
  gap: 2rem;
  align-items: stretch;
  align-content: start;
  padding-bottom: 1rem;
}

/* Форма по контенту; если колонка ниже — скролл внутри */
.checkout-page__scroll {
  min-height: 0;
  max-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.checkout-form-block {
  min-width: 0;
}

.checkout-form-block .checkout-form,
.checkout-form-block .checkout-form__card {
  min-width: 0;
}

.checkout-form-block .checkout-form__card {
  height: auto;
  min-height: 0;
}

.checkout-page__bottom {
  flex-shrink: 0;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.checkout-page__bottom .product-detail__back {
  margin: 0;
  padding: 0;
  border: none;
}

@media (max-width: 900px) {
  .checkout-page__columns {
    grid-template-columns: 1fr;
  }
  /* Legacy CSS ???????? summary ?? mobile. ??? React-?????? ????? ?????? ???? "??? ?????" ??????. */
  .checkout-page-react .checkout-summary,
  .checkout-page-react .checkout-summary__card {
    display: flex !important;
  }
  .checkout-summary,
  .checkout-summary__card {
    display: none !important;
  }
  .checkout-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
  .checkout-form__total-mobile.checkout-form__total-wrap {
    align-items: center;
    justify-content: space-between;
  }
  .checkout-form__total-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
  }
  .checkout-form__total-mobile-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
  }
  .checkout-form__total-mobile-label {
    color: #64748b;
  }
  .checkout-form__total-wrap.checkout-form__total-mobile .checkout-form__total-mobile-value {
    color: #2563eb;
    white-space: nowrap;
  }
  .checkout-form__total-wrap.checkout-form__total-mobile .checkout-form__total-mobile-value-amount {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  .checkout-form__total-mobile-hint {
    font-size: clamp(0.6rem, 1.8vw, 0.75rem);
    color: #94a3b8;
    font-weight: 400;
    text-align: right;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
  }
}

@media (min-width: 901px) {
  .checkout-form__total-mobile {
    display: none !important;
  }
}

/* «Ваш заказ» = высота ряда формы; внутри списка — свой скролл */
.checkout-summary {
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.checkout-summary__card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checkout-summary__title {
  flex-shrink: 0;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-summary__content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.checkout-summary__loading,
.checkout-summary__empty {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.checkout-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-summary-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.6rem 0.75rem;
  align-items: center;
  padding: 0.6rem 1.75rem 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.checkout-summary-item__remove {
  position: absolute;
  top: 0.35rem;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.checkout-summary-item__remove-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  object-fit: contain;
  opacity: 0.7;
}

.checkout-summary-item__remove:hover {
  background: #e2e8f0;
}

.checkout-summary-item__remove:hover .checkout-summary-item__remove-icon {
  opacity: 1;
}

.checkout-summary-item__remove:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

.checkout-summary-item__img-wrap {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #f8fafc;
}

.checkout-summary-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-summary-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.checkout-summary-item__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary-item__variant {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary-item__price {
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 48em) {
  .checkout-summary-item__variant {
    display: none;
  }
}

.checkout-summary-item__stock {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.checkout-summary-item__warn {
  display: block;
  font-size: 0.75rem;
  color: #b91c1c;
  margin-top: 0.25rem;
  font-weight: 500;
}

.checkout-summary-item--over-ordered {
  border-left: 3px solid #b91c1c;
  padding-left: 0.25rem;
}

.checkout-summary-item__total {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.checkout-summary__total {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 0;
  border-top: 2px solid #e2e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.checkout-summary__total-label {
  color: #64748b;
}

.checkout-summary__total-value {
  white-space: nowrap;
}

.checkout-page__title {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.checkout-page__back {
  margin-top: 1.5rem;
}

.checkout-form__errors-wrap {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
}

.checkout-form__errors {
  margin: 0;
}

.checkout-form__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checkout-form__group {
  margin-bottom: 1.25rem;
}

.checkout-form__group:last-of-type {
  margin-bottom: 0.1rem;
}

.checkout-form__label {
  display: block;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.checkout-form__input,
.checkout-form__textarea,
.checkout-form__select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.checkout-form__input:focus,
.checkout-form__textarea:focus,
.checkout-form__select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkout-form__input::placeholder,
.checkout-form__textarea::placeholder {
  color: #94a3b8;
}

.checkout-form__textarea {
  resize: vertical;
  min-height: 4rem;
}

.checkout-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* ????? ?????? ??????? ???????? */
.checkout-delivery-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkout-delivery-option {
  display: block;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  width: 8.5rem;
}

.checkout-delivery-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.checkout-delivery-option__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 5.5rem;
  padding: 0.6rem 0.5rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.checkout-delivery-option:hover .checkout-delivery-option__block {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.checkout-delivery-option:has(.checkout-delivery-option__input:checked) .checkout-delivery-option__block,
.checkout-delivery-option.is-selected .checkout-delivery-option__block {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}

.checkout-delivery-option__img-wrap {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-delivery-option__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-delivery-option__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-align: center;
  line-height: 1.3;
}

/* ?????? ???? ??? ? ???????: .checkout-form__actions = .cart-footer, ???? ?????? ?????? + ?????, ????? ??????????? */
.checkout-form__actions {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 -1rem 0;
  padding: 0 1rem;
}

.checkout-form__actions-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 0;
  width: 100%;
}

.checkout-form__actions-inner .checkout-form__submit {
  flex: 1;
  min-width: 0;
}

.checkout-form__total-wrap {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.checkout-form__total-wrap .checkout-form__total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.checkout-form__total-wrap .checkout-form__total-label {
  font-size: 0.95rem;
  color: #64748b;
}

.checkout-form__total-wrap .checkout-form__total-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

/* ?????? ??? ? ??????? (.cart-footer__checkout) */
.checkout-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.checkout-form__submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.checkout-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.checkout-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ????????? ???? ????? ???????? ???????? ?????? */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-modal[hidden] {
  display: none !important;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.checkout-modal__box {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.checkout-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
}

.checkout-modal__img {
  display: block;
  margin: 0.75rem auto 1rem;
  max-width: 8rem;
  height: auto;
}

.checkout-modal__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

.checkout-modal__ok {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.checkout-modal__ok:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.checkout-modal__ok:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* ????????? ???? ???? ?????? ?? ????????? (?? ????? ?? ????) */
.checkout-order-modal {
  position: fixed;
  inset: 0;
  z-index: 510;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(5rem + 0.75rem) 1rem 1.5rem;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .checkout-order-modal {
    padding-top: calc(7.25rem + 0.75rem);
    padding-bottom: 1.5rem;
  }
  .checkout-order-modal__box {
    max-height: 70vh;
  }
  .checkout-order-modal__content {
    max-height: min(45vh, 18rem);
  }
}

.checkout-order-modal[hidden] {
  display: none !important;
}

.checkout-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.checkout-order-modal__box {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  max-width: min(28rem, calc(100vw - 2rem));
  width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.checkout-order-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.checkout-order-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.checkout-order-modal__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: #f1f5f9;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-order-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.checkout-order-modal__content {
  flex: 0 1 auto;
  max-height: min(50vh, 20rem);
  overflow-y: auto;
  margin-bottom: 1rem;
}

.checkout-order-modal__content .checkout-summary-list {
  display: block;
}

.checkout-order-modal__total {
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

body.checkout-order-modal-open {
  overflow: hidden;
}

/* ???????? ?? ??: ??????? ????????? ????? (??? <button> ? ????? ?? ??????? ???????? ???????) */
.checkout-consent.mantine-Checkbox-root,
.checkout-form__card .checkout-consent.mantine-Checkbox-root {
  align-items: flex-start;
}

.checkout-consent .mantine-Checkbox-inner,
.checkout-form__card .checkout-consent .mantine-Checkbox-inner {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.checkout-consent__body.mantine-Checkbox-body,
.checkout-consent .mantine-Checkbox-body {
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.checkout-consent__label-wrap,
.checkout-consent .mantine-Checkbox-labelWrapper {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.checkout-consent__mantine-label,
.checkout-consent .mantine-Checkbox-label {
  display: inline;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  font-size: var(--mantine-font-size-sm);
  font-weight: 400;
  line-height: 1.45;
  color: var(--mantine-color-text);
}

.checkout-consent__link {
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

.checkout-consent__link:hover,
.checkout-consent__link:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  outline: none;
}

.checkout-consent__required,
.checkout-consent .checkout-consent__required,
.checkout-consent__mantine-label .checkout-consent__required,
.checkout-consent .mantine-Checkbox-label .checkout-consent__required {
  margin-left: 0.15em;
  color: #e74c3c !important;
  font-weight: 400;
}

.document-content {
  line-height: 1.6;
}

.document-content h2 {
  color: #242363;
  margin-bottom: 20px;
  text-align: center;
}

.document-content h3 {
  color: #333;
  margin-top: 25px;
  margin-bottom: 15px;
}

.document-content p {
  margin-bottom: 12px;
  color: #444;
}

.document-content ul,
.document-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.document-content li {
  margin-bottom: 8px;
}

.document-content strong {
  color: #242363;
}

.document-text {
  text-align: justify;
}

.checkout-form label {
  display: block;
  margin: 0.5rem 0;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem;
  margin-top: 0.25rem;
}

/* ???? ???????? ?? ???????? ??????: ?????????? + ? ??????? + ?????? ?????? */
.product-detail__actions {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ????? ??? ???????? (???? ???????): ??? ?? ???????? ? ???? [? N +], ???? ?????? ?? ????????, ?? ??? */
.product-detail__actions--no-size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
  padding: 4px 0;
}

.product-detail__actions--no-size .product-detail__qty-wrap[hidden],
.product-detail__actions--no-size .product-detail__add-btn[hidden] {
  display: none !important;
}

.product-detail__actions--no-size .product-detail__qty-wrap--card-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 7.5rem;
  padding: 0 1rem;
  border: 2px solid #9acea5;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(154, 206, 165, 0.2);
  box-shadow: 0 1px 3px rgba(154, 206, 165, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-detail__actions--no-size .product-detail__qty-wrap--card-style:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(154, 206, 165, 0.25);
}

.product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-btn {
  width: 2rem;
  min-height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #9acea5;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input {
  width: 2.5rem;
  min-height: 2.25rem;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9acea5;
  background: transparent;
  -moz-appearance: textfield;
  padding: 0;
}

.product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-outer-spin-button,
.product-detail__actions--no-size .product-detail__qty-wrap--card-style .product-detail__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail__qty-row {
  margin-bottom: 0.75rem;
}

/* ??????? ? ?????????? + ?? ????????? ?????? */
.product-detail__qty-row--stepper .product-detail__qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
  max-width: 10rem;
}

.product-detail__qty-row--stepper .product-detail__qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.product-detail__qty-row--stepper .product-detail__qty-btn:hover {
  background: #e2e8f0;
}

.product-detail__qty-row--stepper .product-detail__qty-btn:active {
  background: #cbd5e1;
}

.product-detail__qty-row--stepper .product-detail__qty-input {
  width: 3rem;
  min-width: 3rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.product-detail__qty-row--stepper .product-detail__qty-input::-webkit-outer-spin-button,
.product-detail__qty-row--stepper .product-detail__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail__qty-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.35rem;
}

.product-detail__qty-input {
  width: 5rem;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
}

.product-detail__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-detail__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 10rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.product-detail__add-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.product-detail__add-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.product-detail__add-btn:active {
  transform: translateY(0);
}

/* ????????? ?? ???????? ? ??????? ?????? (????? ??????? ??????, ????? ????????? ?????) */
.product-detail__add-btn.product-detail__add-btn--in-cart {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}
.product-detail__add-btn.product-detail__add-btn--in-cart .product-detail__add-btn-icon {
  filter: brightness(0) invert(1);
}
.product-detail__add-btn.product-detail__add-btn--in-cart:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}

.product-detail__buy-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.product-detail__buy-now-btn:hover {
  background: #eff6ff;
  color: #1e40af;
  transform: translateY(-2px);
}

.product-detail__buy-now-btn:active {
  transform: translateY(0);
}

.product-detail__back {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.product-size-pill.is-selected {
  border: 2px solid #2563eb;
  background: rgba(239, 246, 255, 0.92);
}

.shop-btn--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

/* Add-to-cart under card (legacy) / inline next to price */
.product-card__add {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.25rem;
  box-sizing: border-box;
}

.product-card__add--inline {
  margin-top: 0;
  padding: 0;
  min-height: 0;
  justify-content: flex-end;
}

.product-card__cart-action-skeleton {
  width: 5.5rem;
}

@media (max-width: 48em) {
  .product-card__cart-action-label {
    display: none;
  }

  .product-card__cart-action-skeleton {
    width: 2.25rem;
  }

  .product-card__add--inline .product-card__cart-action.mantine-Button-root {
    padding-inline: 0.55rem;
  }

  .product-card__add--inline
    .product-card__cart-action
    .mantine-Button-section[data-position='left'] {
    margin-inline-end: 0;
  }

  .product-card .price {
    font-size: 1rem;
  }
}

/* ????????? ?????? ????? ? ??????? ??????? */
.product-card__selected-size {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__selected-size:empty {
  display: none;
}

.product-card__add--cart-only .product-card__qty-wrap {
  display: none;
}

.product-card__add--with-qty .product-card__cart-btn {
  display: none;
}

.product-card__add--with-qty {
  justify-content: center;
}

/* ???? ?? N +? ? ?? ?? ??????? ? ?????, ??? ? ?????? ??????????; ??????? #9acea5 */
.product-card__qty-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 7.5rem;
  padding: 0 1rem;
  border: 2px solid #9acea5;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(154, 206, 165, 0.2);
  box-shadow: 0 1px 3px rgba(154, 206, 165, 0.2);
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card__qty-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(154, 206, 165, 0.25);
}

.product-card__qty-btn {
  width: 2rem;
  min-height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #9acea5;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.product-card__qty-btn:hover {
  background: transparent;
}

.product-card__qty-btn:active {
  background: transparent;
}

.product-card__qty-input {
  width: 2.5rem;
  min-height: 2.25rem;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9acea5;
  background: transparent;
  -moz-appearance: textfield;
}

.product-card__qty-input::-webkit-outer-spin-button,
.product-card__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-card__qty-input::selection {
  background: rgba(154, 206, 165, 0.2);
}

/* ?????? ?????????? + ?????? ???????, ?? ?????? ???????? */
.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: none;
  border-radius: 2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.product-card__cart-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.product-card__cart-btn:active {
  transform: scale(0.98);
}

/* Mantine Button ? ????????: ??????? hover/active ???????? ??? ? legacy .product-card__cart-btn */
/* ??????? React: ????????, ???????????, ?????????? ? ?? ?? hover/active, ??? ? ?????? ?? ???????? */
.catalog-action-btn.mantine-Button-root {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-action-btn.mantine-Button-root:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.catalog-action-btn.mantine-Button-root:active:not(:disabled) {
  transform: scale(0.98);
}
.catalog-action-btn.mantine-Button-root[data-variant='filled']:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.product-card__add--mantine .add-to-cart-btn.mantine-Button-root:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.product-card__add--mantine .add-to-cart-btn.mantine-Button-root:active {
  transform: scale(0.98);
}

/* EqualActions: равные слоты (ширина ещё и inline в компоненте) */
.tv-equal-actions {
  container-type: inline-size;
  container-name: tv-equal-actions;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tv-equal-actions__slot {
  min-width: 0;
  max-width: none;
}

.tv-equal-actions__slot > .mantine-Button-root,
.tv-equal-actions__slot > .mantine-Skeleton-root,
.tv-equal-actions__slot > .cart-footer__checkout,
.tv-equal-actions__slot > .cart-footer__total-wrap,
.tv-equal-actions__slot > .product-card__qty-mantine,
.tv-equal-actions__slot > .shop-btn {
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  flex: 1 1 auto;
  align-self: stretch;
  box-sizing: border-box;
}

.tv-equal-actions .mantine-Button-root {
  min-width: 0;
  overflow: hidden;
}

.tv-equal-actions .mantine-Button-inner {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.tv-equal-actions .mantine-Button-section {
  flex-shrink: 0;
}

.tv-equal-actions .mantine-Button-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(0.6875rem, 4cqi, 1rem);
  line-height: 1.2;
}

.tv-equal-actions .cart-footer__checkout {
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(0.6875rem, 4cqi, 1rem);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.tv-equal-actions .cart-footer__total-wrap {
  overflow: hidden;
}

.tv-equal-actions .cart-footer__total-value {
  font-size: clamp(0.8rem, 4.5cqi, 1.125rem);
  overflow: hidden;
  white-space: nowrap;
}

/* Hover/active для Mantine CTA в equal-actions / legacy tv-actions */
.tv-actions--mantine .mantine-Button-root,
.tv-equal-actions .mantine-Button-root {
  transition: transform 0.2s, box-shadow 0.2s;
}
.tv-actions--mantine .mantine-Button-root:hover,
.tv-equal-actions .mantine-Button-root:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.tv-actions--mantine .mantine-Button-root:active,
.tv-equal-actions .mantine-Button-root:active {
  transform: scale(0.98);
}

/* ?? ???????? (? ??? ????? ?? ???????? ??????): teal/green */
.tv-actions--mantine .add-to-cart-btn--in-cart.mantine-Button-root {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  color: #fff !important;
}
.tv-actions--mantine .add-to-cart-btn--in-cart.mantine-Button-root:hover {
  background: linear-gradient(135deg, #2dd4bf, #0f766e) !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.45);
}

/* ??????? ??????? (light) ? ???? ????? ??????????? ???? */
.tv-actions--mantine .tv-buy-now-btn.mantine-Button-root:hover {
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}

/* Qty stepper teal (same family as .add-to-cart-btn--in-cart) */
.product-card__qty-mantine {
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card__qty-mantine:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.product-card__qty-mantine:active {
  transform: scale(0.98);
}

/* ?? ???????? (Mantine Button) ? ??????-?????????, ????? ? ???????? */
.product-card__add--mantine .add-to-cart-btn--in-cart.mantine-Button-root {
  /* Mantine ?????????? --button-bg ????????, ??????? ?????????????? ???????? ??? ??????. */
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  color: #fff !important;
}
.product-card__add--mantine .add-to-cart-btn--in-cart.mantine-Button-root:hover {
  background: linear-gradient(135deg, #2dd4bf, #0f766e) !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.45);
}

/* Desktop card-size confirm (legacy Mantine hook kept for specificity) */
.card-size-modal__footer #card-size-modal-add-btn.mantine-Button-root {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  color: #fff !important;
}
.card-size-modal__footer #card-size-modal-add-btn.mantine-Button-root:hover:not(:disabled) {
  background: linear-gradient(135deg, #2dd4bf, #0f766e) !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.45);
}

.product-card__cart-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.product-card__cart-btn-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ????????? / ????? ????? ? ???????: ??????? ?????? ?? ???????? + ?????? */
.product-card__cart-btn--in-cart,
.product-card__cart-btn.add-to-cart-btn--in-cart {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.product-card__cart-btn--in-cart .product-card__cart-btn-icon,
.product-card__cart-btn.add-to-cart-btn--in-cart .product-card__cart-btn-icon {
  filter: brightness(0) invert(1);
}

.product-card__cart-btn--in-cart:hover,
.product-card__cart-btn.add-to-cart-btn--in-cart:hover {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.45);
}

.product-card__cart-btn--added {
  animation: cart-btn-added 0.4s ease;
}

@keyframes cart-btn-added {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.nav-cart-count--bump {
  animation: cart-count-bump 0.3s ease;
}

/* Mantine Notifications: ????????? ?? ?????? ??????????? ????? ?? ????????.
   ????????? ????????????? ???? ??????????? (???? ??? ????). */
.mantine-Notifications-root {
  pointer-events: none;
}
.mantine-Notification-root {
  pointer-events: auto;
}

@keyframes cart-count-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Toasts */
.shop-toast-container {
  position: fixed;
  top: 5.5rem; /* ??? .shop-nav (5rem) + ?????? */
  right: 1rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

/* React HomePage (Mantine cards/hero) */
.tv-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tv-product-card:hover {
  transform: translateY(-2px);
}

.tv-product-card__title {
  transition: color 0.15s ease;
}

.tv-product-card:hover .tv-product-card__title {
  color: #2563eb; /* ????????? ????? */
}

.tv-hero {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* ??? ???????: HeroSlider ? background-size: cover (????????? ???? ?? ?????? ? ??????).
   ??????: ??????? 1200?320 px, ????????? 520?240 px. */
.tv-hero__paper {
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 48em) {
  .tv-hero__paper {
    min-height: min(calc((100vw - 1.5rem) * 0.55), 240px);
    /* Как кадр галереи товара */
    border-radius: 0.75rem !important;
  }
}

/* Главная: герой по ширине как mobile product gallery (0.75rem от края экрана) */
.home-page-react__hero {
  width: 100%;
  min-width: 0;
}

.home-page-react__sections {
  width: 100%;
  min-width: 0;
}

@media (max-width: 48em) {
  .shop-main__inner > .mantine-Container-root.home-page--react {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }

  .home-page-react__hero {
    box-sizing: border-box;
    padding: 0.75rem 0.75rem 0;
  }

  .home-page-react__sections {
    box-sizing: border-box;
    padding: 1.25rem 0.75rem 0.75rem;
  }
}

/* Компактный каталог + корзина/заказ: боковые 0.75rem как на главной */
.shop-main__inner > .mantine-Container-root.catalog-page--react {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

@media (max-width: 48em) {
  .shop-main__inner > .mantine-Container-root.cart-page--react,
  .shop-main__inner > .mantine-Container-root.checkout-page--react,
  .shop-main__inner > .mantine-Container-root.order-detail-page--react,
  .shop-main__inner > .mantine-Container-root.order-lookup-page--react,
  .shop-main__inner > .mantine-Container-root.order-success-page--react {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

.tv-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 56px; /* ????? ??? ?????? */
}

.tv-hero__actions {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 2;
}

.tv-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(2, 6, 23, 0.35);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tv-hero__nav:hover {
  background: rgba(2, 6, 23, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
}

.tv-hero__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.tv-hero__nav--prev {
  left: 14px;
}

.tv-hero__nav--next {
  right: 14px;
}

.tv-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.tv-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.tv-hero__dot.is-active {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .shop-toast-container {
    top: 7.5rem; /* ??? ????????? ??????? (7.25rem) + ?????? */
  }
}

.shop-toast {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(1.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.shop-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.shop-toast--success {
  background: #0f172a;
  color: #fff;
}

.shop-toast--hint {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}

/* --- Mantine / React: ?????? ????? ? legacy + ??????????? ??? ???????? --- */
.mantine-Notifications-root {
  top: 5.75rem !important;
}

/* Mantine Notifications: ??????? ??????????? ?? ?????? ?????? */
.mantine-Notification-root .mantine-Notification-closeButton {
  color: rgba(255, 255, 255, 0.82);
}
.mantine-Notification-root .mantine-Notification-closeButton:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mantine-Notification-root .mantine-Notification-closeButton:active {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .mantine-Notifications-root {
    top: 7.75rem !important;
  }
}

.shop-main .mantine-Button-root[data-variant='filled'] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
}

.shop-main .mantine-Button-root[data-variant='filled']:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.shop-main .mantine-Card-root {
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shop-main .mantine-Title-root {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

/* --- Embla (ProductGallery) --- */
.tv-embla {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 1.25rem;
  background: #fff;
  touch-action: pan-y pinch-zoom;
}

.tv-embla__container {
  display: flex;
  gap: 0;
  margin-left: 0;
  touch-action: pan-y pinch-zoom;
}

.tv-embla__slide img,
.tv-embla__slide .mantine-Image-root,
.tv-embla__slide-inner .product-badge {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.tv-embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  padding-left: 0;
  box-sizing: border-box;
}

.tv-embla__slide-inner {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ??????? ?????? ? ???? ???????? */

.tv-embla__thumb {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tv-embla__thumbs {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: thin;
  padding: 2px 0; /* ????? ???? ?? ?????????? */
  justify-content: center;
}
.tv-embla__thumbs::-webkit-scrollbar {
  height: 8px;
}
.tv-embla__thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tv-embla__thumb.is-active {
  border: 2px solid #2563eb;
}
.tv-embla__thumb-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.tv-embla__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.5rem;
  padding: 0.6rem 0 0.1rem;
}

.tv-embla__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.tv-embla__dot.is-active {
  background: #1e293b;
}

.tv-product-gallery--mobile {
  width: 100%;
  min-width: 0;
  background: transparent;
}

/* Нативный горизонтальный скролл (mobile): стабильнее Embla внутри overflow-y */
.tv-gallery-snap {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* pan-x + pan-y: свайп фото и вертикальный скролл страницы с области галереи */
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  background: transparent;
}

.tv-gallery-snap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tv-gallery-snap__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.75rem 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.tv-product-gallery--mobile .tv-gallery-snap__slide .tv-embla__slide-inner,
.tv-product-gallery--mobile .tv-embla__slide-inner {
  border-radius: 0.75rem;
  height: var(--tv-pd-gallery-h, min(calc(100vw - 1.5rem), 55vh));
  max-height: var(--tv-pd-gallery-h, min(calc(100vw - 1.5rem), 55vh));
  overflow: hidden;
}

.tv-product-gallery--mobile .tv-embla__slide-inner .mantine-Image-root,
.tv-product-gallery--mobile .tv-embla__slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Legacy Embla mobile overrides (desktop thumbs still use .tv-embla) */
.tv-product-gallery--mobile .tv-embla {
  border-radius: 0;
  background: transparent;
}

/* Size pills on product detail: fixed width; cart badge out of flow */
.size-stock-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* room for absolute badge so it does not clip or shift the row */
  padding: 0.4rem 0.15rem 0.1rem 0.4rem;
}

.size-stock-picker__pill {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.35rem 0.4rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  overflow: visible;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.size-stock-picker__pill:hover:not(:disabled):not(.is-disabled) {
  background: rgba(239, 246, 255, 0.92);
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

.size-stock-picker__pill.is-selected:not(.is-disabled):not(:disabled) {
  background: var(--mantine-color-blue-filled, #228be6);
  border-color: var(--mantine-color-blue-filled, #228be6);
  color: #fff;
  box-shadow: none;
}

.size-stock-picker__pill.is-selected:not(.is-disabled):not(:disabled)
  .size-stock-picker__label
  em {
  color: rgba(255, 255, 255, 0.85);
}

.size-stock-picker__pill.is-disabled,
.size-stock-picker__pill:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
  box-shadow: none;
}

.size-stock-picker__pill.is-disabled .size-stock-picker__label em,
.size-stock-picker__pill:disabled .size-stock-picker__label em {
  color: #94a3b8;
}

.size-stock-picker__label {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  white-space: nowrap;
}

.size-stock-picker__label em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
}

.size-stock-picker__cart-badge {
  position: absolute;
  top: -0.35rem;
  left: -0.35rem;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  background: #64748b;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
}

.size-stock-picker__pill.has-in-cart .size-stock-picker__cart-badge {
  opacity: 1;
}

/* Mobile qty edit sheet (product card / cart) */
.qty-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.qty-edit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.qty-edit-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  margin: 0;
  padding: 0 0 max(1rem, var(--tv-bottom-inset, 0.75rem));
  background: #fff;
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.18);
}

.qty-edit-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.5rem;
}

.qty-edit-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.qty-edit-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.qty-edit-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qty-edit-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 1rem 0.25rem;
}

.qty-edit-modal__stepper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.qty-edit-modal__stepper-btn {
  width: 3rem;
  min-width: 3rem;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
}

.qty-edit-modal__stepper-btn:active {
  background: #e2e8f0;
}

.qty-edit-modal__input {
  flex: 1 1 auto;
  min-width: 3.5rem;
  max-width: 6rem;
  margin: 0;
  padding: 0.65rem 0.25rem;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  -moz-appearance: textfield;
}

.qty-edit-modal__input::-webkit-outer-spin-button,
.qty-edit-modal__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-edit-modal__confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-edit-modal__confirm:active {
  filter: brightness(0.95);
}

body.qty-edit-modal-open {
  overflow: hidden;
}

/* ——— Checkout: брендовый лоадер при отправке заказа ——— */
.tv-brand-loading {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: tv-brand-loading-fade-in 0.28s ease-out both;
}

.tv-brand-loading__veil {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv-brand-loading__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 1.75rem 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  min-width: min(18rem, calc(100vw - 2.5rem));
}

.tv-brand-loading__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
}

.tv-brand-loading__logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  display: block;
  animation: tv-brand-loading-spin 1.2s linear infinite;
}

.tv-brand-loading__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

.checkout-page--submitting,
.shop-breadcrumb-bar--dimmed {
  opacity: 0.55;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.order-success-page--enter {
  animation: tv-brand-loading-fade-in 0.35s ease-out both;
}

@keyframes tv-brand-loading-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tv-brand-loading-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-brand-loading,
  .order-success-page--enter {
    animation: none;
  }

  .tv-brand-loading__logo {
    animation: none;
  }
}
