/* === Storefront common styles === */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("/assets/fonts/inter/InterVariable-v1.woff2") format("woff2-variations"),
    url("/assets/fonts/inter/InterVariable-v1.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("/assets/fonts/inter/InterVariable-Italic-v1.woff2") format("woff2-variations"),
    url("/assets/fonts/inter/InterVariable-Italic-v1.woff2") format("woff2");
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
}

.content-prose {
  color: rgb(71 85 105);
  font-size: 0.975rem;
  line-height: 1.8;
}

.content-prose > :first-child {
  margin-top: 0;
}

.content-prose > :last-child {
  margin-bottom: 0;
}

.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4 {
  margin: 1.35rem 0 0.75rem;
  color: rgb(15 23 42);
  font-weight: 800;
  line-height: 1.25;
}

.content-prose h2 {
  font-size: 1.45rem;
}

.content-prose h3 {
  font-size: 1.2rem;
}

.content-prose p,
.content-prose ul,
.content-prose ol,
.content-prose blockquote,
.content-prose pre {
  margin: 0.85rem 0;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.25rem;
}

.content-prose a {
  color: rgb(67 56 202);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content-prose blockquote {
  border-left: 3px solid rgb(129 140 248);
  padding-left: 1rem;
  color: rgb(51 65 85);
}

.content-prose img {
  display: block;
  max-width: 100%;
  border-radius: 1.25rem;
}

.help-content-mode .content-prose.help-prose-enhanced {
  counter-reset: help-sections;
}

.help-content-mode .help-prose-section {
  counter-increment: help-sections;
  margin: 1.15rem 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgb(224 231 255);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
  box-shadow: 0 24px 60px -48px rgba(15, 23, 42, 0.38);
}

.help-content-mode .help-prose-section > :first-child {
  margin-top: 0;
}

.help-content-mode .help-prose-section > :last-child {
  margin-bottom: 0;
}

.help-content-mode .help-prose-section h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.9rem;
  color: rgb(15 23 42);
  font-size: 1.08rem;
  line-height: 1.35;
}

.help-content-mode .help-prose-section h3::before {
  content: counter(help-sections, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(79 70 229), rgb(99 102 241));
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -20px rgba(79, 70, 229, 0.72);
}

.help-content-mode .help-prose-section p:first-of-type {
  color: rgb(30 41 59);
}

.help-content-mode .help-prose-section ul,
.help-content-mode .help-prose-section ol {
  padding-left: 1.35rem;
}

.help-content-mode .help-prose-section li + li {
  margin-top: 0.38rem;
}

.help-content-mode .help-prose-section li::marker {
  color: rgb(79 70 229);
  font-weight: 700;
}

.help-content-mode .help-prose-section a {
  font-weight: 600;
}

@media (min-width: 768px) {
  .help-content-mode .help-prose-section {
    padding: 1.2rem 1.3rem 1.3rem;
  }

  .help-content-mode .help-prose-section h3 {
    font-size: 1.14rem;
  }
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* === Toast notifications === */

.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: auto;
  pointer-events: none;
}

.toast-item {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(10px);
  animation: toastIn 0.28s ease-out both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Pulse animation (search/loading) === */

@keyframes pulseSoft {
  0% {
    transform: scaleX(1);
    opacity: 0.25;
  }
  50% {
    transform: scaleX(1.08);
    opacity: 0.7;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.25;
  }
}
.search-pulse-soft {
  animation: pulseSoft 1.35s ease-in-out infinite;
}

.catalog-search-shell {
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.catalog-search-shell:focus-within,
.catalog-sort-shell:focus-within {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.catalog-search-input {
  line-height: 1.1;
}

.catalog-sort-shell {
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.catalog-sort-select {
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font: inherit;
  line-height: 1.1;
  color: #334155;
  outline: none;
}

.catalog-sort-select::-ms-expand {
  display: none;
}

/* === Inner page context bands === */

.inner-context-band {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

.inner-context-band .context-band-breadcrumbs {
  margin-bottom: 0.75rem;
}

.inner-context-band .context-band-eyebrow {
  order: 2;
  margin-top: 0;
}

.inner-context-band .context-band-title {
  order: 3;
  margin-top: 0.25rem;
  text-wrap: balance;
}

.inner-context-band .context-band-lead {
  order: 4;
  margin-top: 0.5rem;
  max-width: 42rem;
  color: rgb(71 85 105);
}

.inner-context-band .context-band-meta,
.inner-context-band .context-band-chip-row {
  order: 5;
  margin-top: 0.75rem;
}

.inner-context-band .context-band-actions,
.inner-context-band .context-band-action {
  order: 6;
  margin-top: 0.75rem;
}

.inner-context-band .context-band-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inner-context-band .context-band-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgb(226 232 240);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.8);
  padding: 0.375rem 0.75rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  color: rgb(71 85 105);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.inner-context-band .context-band-action {
  align-self: flex-start;
}

.inner-context-band .context-band-chip > a,
.inner-context-band .context-band-chip > span {
  min-width: 0;
}

.inner-context-band .context-band-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inner-context-band .context-band-main {
  min-width: 0;
}

.inner-context-band .context-band-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.inner-context-band .context-band-side .context-band-chip-row,
.inner-context-band .context-band-side .context-band-action,
.inner-context-band .context-band-side .context-band-meta,
.inner-context-band .context-band-side .context-band-actions {
  margin-top: 0;
}

.inner-context-band .context-band-side .context-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 639px) {
  .inner-context-band {
    min-height: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .inner-context-band .context-band-breadcrumbs {
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.25;
    color: rgb(100 116 139);
  }

  #mobileBreadcrumb,
  .inner-context-band .context-band-breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    column-gap: 0.375rem;
    row-gap: 0;
    font-size: inherit;
    line-height: inherit;
    padding-bottom: 0.125rem;
  }

  #mobileBreadcrumb {
    font-size: 0.75rem;
    line-height: 1.25;
    color: rgb(100 116 139);
  }

  #mobileBreadcrumb a {
    color: rgb(71 85 105);
    font-weight: 500;
  }

  #mobileBreadcrumb #mobileBreadcrumbVariant {
    color: rgb(15 23 42);
    font-weight: 600;
  }

  #mobileBreadcrumb::-webkit-scrollbar,
  .inner-context-band .context-band-breadcrumbs ol::-webkit-scrollbar {
    display: none;
  }

  #mobileBreadcrumb > *,
  .inner-context-band .context-band-breadcrumbs ol > * {
    flex: 0 0 auto;
  }

  .inner-context-band .context-band-layout {
    display: block;
    gap: 0;
  }

  .inner-context-band .context-band-eyebrow,
  .inner-context-band .context-band-lead,
  .inner-context-band .context-band-meta,
  .inner-context-band .context-band-chip-row,
  .inner-context-band .context-band-side,
  .inner-context-band .context-band-actions,
  .inner-context-band .context-band-action {
    display: none !important;
  }

  .inner-context-band .context-band-title {
    margin-top: 0;
    display: none !important;
  }
}

#status:empty {
  display: none;
  margin: 0 !important;
}

@media (max-width: 767px) {
  #productBannerCarousel.hidden ~ #bannerDots,
  #pageBannerCarousel.hidden ~ #pageBannerDots {
    display: none !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
}

@media (min-width: 1280px) {
  .inner-context-band .context-band-layout {
    display: grid;
    grid-template-columns: minmax(0, 50rem) minmax(18rem, 22rem);
    align-items: end;
    justify-content: start;
    column-gap: 2rem;
    row-gap: 1rem;
  }

  .inner-context-band .context-band-main {
    max-width: 50rem;
  }

  .inner-context-band .context-band-side {
    align-items: flex-start;
    align-self: end;
    justify-self: start;
    max-width: 22rem;
    padding-bottom: 0.25rem;
  }

  .inner-context-band .context-band-side .context-band-chip-row {
    justify-content: flex-start;
  }

  .inner-context-band .context-band-side .context-band-action {
    text-align: left;
  }

  .inner-context-band .context-band-lead {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

/* === Hero carousel (index) === */

.hero-slide-layer {
  transition: opacity 0.55s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-layer {
    transition: none;
  }
}
@media (max-width: 639px) {
  #heroChrome {
    display: none !important;
  }
}

@media (min-width: 768px) {
  #heroChrome,
  #pageBannerChrome,
  #productBannerChrome {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 0;
  }

  #heroPrev,
  #pageBannerPrev,
  #bannerPrev,
  #heroNext,
  #pageBannerNext,
  #bannerNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  #heroPrev,
  #pageBannerPrev,
  #bannerPrev {
    left: 8px;
  }

  #heroNext,
  #pageBannerNext,
  #bannerNext {
    right: 8px;
  }
}

@media (min-width: 768px) and (hover: hover) {
  #heroPrev,
  #heroNext,
  #pageBannerPrev,
  #pageBannerNext,
  #bannerPrev,
  #bannerNext {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  #heroViewport:hover #heroPrev,
  #heroViewport:hover #heroNext,
  #heroViewport:focus-within #heroPrev,
  #heroViewport:focus-within #heroNext,
  #pageBannerCarousel:hover #pageBannerPrev,
  #pageBannerCarousel:hover #pageBannerNext,
  #pageBannerCarousel:focus-within #pageBannerPrev,
  #pageBannerCarousel:focus-within #pageBannerNext,
  #productBannerCarousel:hover #bannerPrev,
  #productBannerCarousel:hover #bannerNext,
  #productBannerCarousel:focus-within #bannerPrev,
  #productBannerCarousel:focus-within #bannerNext {
    opacity: 1;
    visibility: visible;
  }
}

/* === Lightbox ===  */

.cursor-zoom-in {
  cursor: zoom-in;
}
.cursor-zoom-out {
  cursor: zoom-out;
}

/* === Mobile menu drawer === */

#mobileMenuDrawer {
  z-index: 60;
}

#mobileMenuDrawer [data-panel] {
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

#mobileMenuDrawer [data-panel] > nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#mobileMenuDrawer #drawerContacts {
  flex-shrink: 0;
  max-height: min(34vh, 18rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

#mobileMenuBackdrop {
  transition: opacity 0.3s ease;
}

/* === Mobile filter drawer === */

body.filter-drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.filter-drawer-panel:not([open]) {
  margin: 0;
  padding: 0;
  border: none;
  height: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

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

@media (max-width: 1023px) {
  .filter-drawer-panel[open] {
    position: fixed;
    inset: 0;
    z-index: 50;
    margin: 0;
    border-radius: 0;
    border: none;
    background: white;
    box-shadow: none;
    overflow: hidden;
    animation: filterDrawerSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .filter-drawer-panel[open] .filter-drawer-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .filter-drawer-panel[open] .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgb(241 245 249);
    background: white;
    flex-shrink: 0;
  }

  .filter-drawer-panel[open] #catalogSidebar {
    flex: 1;
    min-height: 0;
    max-height: none;
    border-top: none;
    padding-bottom: 0;
    overflow: hidden;
  }

  .filter-drawer-panel[open] .catalog-sidebar-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}

@keyframes filterDrawerSlideUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Catalog sidebar === */

.catalog-sidebar .sidebar-zone-rule {
  height: 1px;
  margin: 0.125rem 0 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(203 213 225 / 0.72) 18%,
    rgb(203 213 225 / 0.72) 82%,
    transparent 100%
  );
}

.catalog-sidebar .catalog-sidebar-action-dock {
  box-shadow: 0 -12px 24px -20px rgba(15, 23, 42, 0.14);
}

.catalog-sidebar .sidebar-facet-label {
  position: relative;
}

/* === Catalog listing cards === */

.catalog-listing-card__body {
  display: block;
  padding: 0;
}

.catalog-listing-card__media {
  width: 100%;
  aspect-ratio: 11 / 10;
  border-radius: 0;
}

.catalog-listing-card__content {
  padding: 1rem 1rem 0.75rem;
}

.catalog-listing-card__actions {
  padding: 0 0.75rem 0.75rem;
}

@media (max-width: 639px) {
  .catalog-listing-card__body {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
  }

  .catalog-listing-card__media {
    width: 10.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    flex-shrink: 0;
  }

  .catalog-listing-card__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.125rem 0 0;
  }

  .catalog-listing-card__meta {
    font-size: 0.72rem;
  }

  .catalog-listing-card__title {
    margin-top: 0.125rem;
    font-size: 0.975rem;
    line-height: 1.2;
  }

  .catalog-listing-card__details {
    margin-top: 0.5rem;
  }

  .catalog-listing-card__variant {
    padding: 0.425rem 0.575rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .catalog-listing-card__price-label {
    font-size: 0.72rem;
  }

  .catalog-listing-card__price {
    font-size: 1.85rem;
    line-height: 1;
    white-space: nowrap;
  }

  .catalog-listing-card__actions {
    gap: 0.375rem;
    padding: 0 0.875rem 0.875rem;
    margin-top: 0.125rem;
  }
}

/* === Baseline interactive transitions === */

button,
[role="button"],
a,
input,
select,
textarea,
summary {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Bottom navigation bar (mobile) === */

#mobileFilterFab {
  z-index: 55;
  min-height: 48px;
  min-width: 118px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  touch-action: manipulation;
  user-select: none;
  will-change: bottom, opacity;
}

#mobileFilterFab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#catalogListingShell.is-hidden {
  display: none !important;
}

#bottomNav {
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.mobile-menu-open #bottomNav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
}

/* === Bottom-sheet modal (mobile ≤639px) === */

@media (min-width: 640px) {
  .account-order-dialog-backdrop {
    align-items: center !important;
    justify-content: center;
    padding: 1.5rem !important;
  }

  .account-order-dialog {
    width: min(58rem, calc(100vw - 3rem)) !important;
    max-width: min(58rem, calc(100vw - 3rem)) !important;
    max-height: min(82vh, 720px);
    margin: 0 !important;
    border-radius: 1.75rem !important;
  }

  .account-order-dialog::before {
    display: none;
  }
}

@media (max-width: 639px) {
  #bonusTeaser {
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1.15rem;
    box-shadow: 0 12px 30px -26px rgba(5, 150, 105, 0.28);
  }

  #bonusTeaser > div {
    gap: 0.75rem;
    align-items: center;
  }

  #bonusTeaser > div > div:first-child {
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0;
    border-radius: 1rem;
  }

  #bonusTeaserEyebrow {
    letter-spacing: 0.16em;
  }

  #bonusTeaserTitle {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.25rem;
  }

  #variantSelectorBlock {
    border-color: rgb(226 232 240);
    border-radius: 1.25rem;
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.28);
  }

  #variantSelectorBlock > div {
    padding: 0.9rem 0.95rem;
  }

  #variantSelectorBlock .variant-option {
    min-height: 2.625rem;
    padding-inline: 0.75rem;
    padding-block: 0.625rem;
    font-size: 0.875rem;
  }

  #variantSelectorBlock [data-field="color"] .variant-option {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  #variantSelectorBlock [data-field="color"] .variant-option span:last-child {
    max-width: 100%;
    font-size: 0.6875rem;
  }

  #variantSelectorBlock [data-field="color"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #variantSelectorBlock #purchaseModeOptions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #variantSelectorBlock .purchase-mode-option {
    min-height: 2.5rem;
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 0.875rem;
    padding-block: 0.5rem;
    font-size: 0.8125rem;
  }

  #mobileSelectionSummary,
  #stickyCta {
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.42);
  }

  #topSpecsBlock {
    padding: 0.75rem;
  }

  #topSpecsBlock .top-specs-eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  #topSpecsBlock .top-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  #topSpecsBlock .top-specs-item {
    display: flex;
    min-height: 3.5rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0.6rem;
    border-radius: 0.8rem;
  }

  #topSpecsBlock .top-specs-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  #topSpecsBlock .top-specs-value {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 0.95rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #productTrustStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
  }

  #productTrustStrip > div {
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
  }

  #productTrustStrip > div:last-child {
    grid-column: 1 / -1;
  }

  #productTrustStrip span {
    font-size: 0.78rem;
    line-height: 1.05rem;
  }

  #stickyCta > div {
    padding: 0.5rem 0.75rem;
  }

  #stickyCtaContent {
    align-items: center;
    gap: 0.65rem;
  }

  #stickyCtaMeta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
  }

  #stickyCtaMetaTop {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
  }

  #stickyCtaVariant {
    min-width: 0;
    flex: 1 1 auto;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.7rem;
    line-height: 0.9rem;
  }

  #stickyCtaPrice {
    font-size: 1.2rem;
    line-height: 1;
  }

  #stickyCtaOldPrice {
    font-size: 0.72rem;
    line-height: 0.9rem;
  }

  #stickyCtaDiscountBadge {
    padding: 0.1rem 0.4rem;
    font-size: 0.56rem;
    line-height: 0.9rem;
  }

  #stickyCtaInstallment {
    margin-top: 0.05rem;
    color: #64748b;
  }

  #stickyCtaAvailability {
    flex: 0 0 auto;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    margin-top: 0;
    white-space: nowrap;
  }

  #stickyCtaAction {
    width: 7.35rem;
    max-width: 34vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  #stickyCtaBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    width: 100%;
    min-height: 2.35rem;
    padding-block: 0.55rem;
    padding-inline: 0.9rem;
    font-size: 0.84rem;
    line-height: 0.95rem;
  }

  .bottom-sheet-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .bottom-sheet-dialog {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 85vh;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    margin: 0;
    animation: bottomSheetUp 0.3s ease-out;
  }
  .bottom-sheet-dialog::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto 8px;
    border-radius: 9999px;
    background: #cbd5e1;
    flex-shrink: 0;
  }
}

@keyframes bottomSheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* === Credit page desktop composition === */

@media (min-width: 1024px) {
  #productSection {
    gap: 1.75rem;
  }

  #productSection > div:first-child {
    gap: 1.75rem;
  }

  #thumbs {
    margin-top: 0;
    gap: 0.5rem;
  }

  #thumbsShell {
    margin-top: 0.625rem !important;
    gap: 0.5rem;
  }

  #thumbsPrevBtn,
  #thumbsNextBtn {
    width: 2.375rem;
    height: 5rem;
    border-radius: 0.9rem;
  }

  #thumbs .thumb-btn {
    border-radius: 0.9rem;
  }

  #thumbs .thumb-btn img,
  #thumbs .thumb-btn > div {
    height: 5rem;
  }

  #bonusTeaser {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
  }

  #bonusTeaser > div {
    align-items: center;
    gap: 0.75rem;
  }

  #bonusTeaser > div > div:first-child {
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0;
    border-radius: 0.9rem;
  }

  #bonusTeaserTitle {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.25rem;
  }

  #bonusTeaserDescription {
    display: none;
  }

  #bonusTeaserAuthLinks {
    margin-top: 0.5rem;
  }

  #variantSelectorBlock > div {
    padding: 1rem 1.125rem;
  }

  #variantSelectorBlock h2 {
    margin-bottom: 0.75rem;
  }

  #variantSelectorBlock #purchaseModeBlock {
    margin-bottom: 0.75rem;
  }

  #variantSelectorBlock .variant-option {
    min-height: 2.5rem;
    padding-inline: 0.9rem;
    padding-block: 0.5rem;
  }

  #variantSelectorBlock #purchaseModeOptions {
    gap: 0.625rem;
  }

  #variantSelectorBlock [data-field="color"] .variant-option span:last-child {
    font-size: 0.72rem;
    line-height: 1.05;
  }

  #topSpecsBlock {
    padding: 0.875rem;
  }

  #topSpecsBlock .top-specs-eyebrow {
    margin-bottom: 0.625rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgb(100 116 139);
  }

  #topSpecsBlock .top-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #topSpecsBlock .top-specs-item {
    min-width: 0;
    border: 1px solid rgb(241 245 249);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.88);
    padding: 0.65rem 0.75rem;
  }

  #topSpecsBlock .top-specs-label {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgb(148 163 184);
  }

  #topSpecsBlock .top-specs-value {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.1rem;
    font-weight: 600;
    color: rgb(30 41 59);
    word-break: break-word;
  }

  #productTrustStrip {
    padding: 0.875rem;
    gap: 0.625rem;
  }

  #productTrustStrip > div {
    gap: 0.625rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
  }

  #productTrustStrip span {
    font-size: 0.82rem;
    line-height: 1.15rem;
  }

  #ctaBlock {
    padding: 0.875rem 1rem;
  }

  #ctaActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }

  #creditBtn {
    grid-column: 1 / -1;
  }

  #addToCartBtn,
  #orderBtn,
  #creditBtn {
    border-radius: 1rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    font-size: 0.95rem;
  }

  #deliveryBlock {
    padding: 0.8rem 1rem;
    align-items: center;
  }

  #deliveryText {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (min-width: 1280px) {
  #ctaActions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #creditBtn {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  #creditMainState {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === Credit estimate helper === */

.credit-selfie-unmirror {
  transform: scaleX(-1);
  transform-origin: center;
}

.credit-camera-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 38%), #000;
}

.credit-camera-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.credit-camera-guide__frame {
  position: relative;
  width: min(72%, 320px);
  aspect-ratio: 0.78;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.36), 0 24px 60px -36px rgba(15, 23, 42, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.credit-camera-guide__frame::after {
  content: "Лицо в центре";
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.credit-camera-guide__frame--neutral {
  border-color: rgba(255, 255, 255, 0.84);
}

.credit-camera-guide__frame--warn {
  border-color: rgba(251, 191, 36, 0.96);
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.38), 0 0 0 8px rgba(251, 191, 36, 0.08);
}

.credit-camera-guide__frame--error {
  border-color: rgba(251, 113, 133, 0.98);
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.42), 0 0 0 8px rgba(251, 113, 133, 0.08);
}

.credit-camera-guide__frame--ready {
  border-color: rgba(52, 211, 153, 0.98);
  transform: scale(1.01);
  box-shadow: 0 0 0 999px rgba(2, 6, 23, 0.32), 0 0 0 8px rgba(52, 211, 153, 0.1);
}

.credit-camera-guide__frame--muted {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.9);
}

.credit-camera-guide-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(226 232 240);
}

.credit-camera-guide-badge--neutral {
  border-color: rgba(148, 163, 184, 0.28);
  color: rgb(226 232 240);
}

.credit-camera-guide-badge--warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.12);
  color: rgb(254 240 138);
}

.credit-camera-guide-badge--error {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.12);
  color: rgb(254 205 211);
}

.credit-camera-guide-badge--ready {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: rgb(209 250 229);
}

.credit-camera-guide-badge--muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
  color: rgb(226 232 240);
}

.credit-camera-action[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .credit-camera-guide__frame {
    width: min(76%, 290px);
  }

  .credit-camera-guide__frame::after {
    bottom: -1.25rem;
    font-size: 0.64rem;
  }
}

.credit-estimate-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 28px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(238, 242, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(248, 250, 252, 0.98) 100%);
}

.credit-estimate-total {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.55rem 0.9rem 0.6rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px -26px rgba(79, 70, 229, 0.55);
}

.credit-estimate-total__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(79 70 229);
}

.credit-estimate-total strong {
  font-size: 1rem;
  line-height: 1.2;
  color: rgb(15 23 42);
}

.credit-estimate-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px -22px rgba(79, 70, 229, 0.55);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(67 56 202);
}

.credit-estimate-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.35);
}

.credit-estimate-hint {
  max-width: 18rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgb(100 116 139);
}

.credit-estimate-slider {
  --credit-estimate-progress: 27.27%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  outline: none;
  background:
    linear-gradient(
      90deg,
      rgb(79 70 229) 0%,
      rgb(99 102 241) var(--credit-estimate-progress),
      rgb(226 232 240) var(--credit-estimate-progress),
      rgb(226 232 240) 100%
    );
}

.credit-estimate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 4px solid rgb(255 255 255);
  border-radius: 999px;
  background: rgb(79 70 229);
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.8);
  cursor: pointer;
}

.credit-estimate-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid rgb(255 255 255);
  border-radius: 999px;
  background: rgb(79 70 229);
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.8);
  cursor: pointer;
}

.credit-estimate-slider::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: rgb(226 232 240);
}

.credit-estimate-slider::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(79 70 229) 0%, rgb(99 102 241) 100%);
}

@media (min-width: 640px) {
  .credit-estimate-surface {
    padding: 1.25rem;
  }

  .credit-estimate-total strong {
    font-size: 1.05rem;
  }

  .credit-estimate-meter {
    padding: 1.1rem 1.2rem;
  }
}

.storefront-favorite-chip {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.storefront-favorite-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 62%);
  opacity: 0.85;
  pointer-events: none;
}

.storefront-favorite-chip [data-favorite-icon] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-0.5px);
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}

.storefront-favorite-chip [data-favorite-icon] svg {
  width: 1rem;
  height: 1rem;
}

.storefront-favorite-chip [data-favorite-label] {
  position: relative;
  z-index: 1;
}

.storefront-favorite-chip:hover [data-favorite-icon] {
  transform: scale(1.08);
}

.storefront-favorite-chip.storefront-favorite-chip--active [data-favorite-icon] {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(244, 63, 94, 0.24));
}
