/* ==========================================================================
   LUMOS — Style Reference: Floating shopping constellation on white marble
   Theme: Light
   Canvas Mist:   #f2f4f5 (Page background and secondary wash)
   Pure White:    #ffffff (Cards, inputs, floating spotlights, pills)
   Ink Black:     #000000 (Text, icons, nav symbols)
   Faint Border:  #ebebeb (Hairline dividers, inputs, pill borders)
   Muted Gray:    #787574 (Secondary text, nav labels)
   Cool Stone:    #cccccc (Placeholders, inactive backgrounds)
   Shop Violet:   #5433eb (Sole saturated accent: search button, logo dot, button shadow)
   Violet Wash:   #c0b5f3 (Translucent halo behind purple button)
   Slate Ink:     #332f2d
   ========================================================================== */

:root {
  color-scheme: light;

  /* Design System Shop Palette */
  --color-mist: #f2f4f5;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: #ebebeb;
  --color-muted: #787574;
  --color-stone: #cccccc;
  --color-violet: #5433eb;
  --color-violet-wash: #c0b5f3;
  --color-slate-ink: #332f2d;

  /* Backward compatibility aliases */
  --lm-bg: var(--color-white);
  --lm-surface: var(--color-mist);
  --lm-surface-2: #ffffff;
  --lm-ink: var(--color-black);
  --lm-ink-2: var(--color-slate-ink);
  --lm-ink-soft: #4b5563;
  --lm-muted: var(--color-muted);
  --lm-muted-light: #9ca3af;
  --lm-line: var(--color-border);
  --lm-line-dark: var(--color-stone);
  --lm-blue: var(--color-violet);
  --lm-blue-hover: #4625d9;
  --lm-blue-light: rgba(84, 51, 235, 0.08);
  --lm-glow: rgba(84, 51, 235, 0.25);
  --lm-glow-soft: rgba(84, 51, 235, 0.12);
  --lm-success: #10b981;
  --lm-success-bg: #ecfdf5;
  --lm-danger: #ef4444;
  --lm-danger-bg: #fef2f2;
  --lm-star: #f59e0b;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --lm-font: var(--font-family);

  /* Radii */
  --radius-card: 28px;
  --radius-pill: 9999px;
  --radius-photo: 20px;
  --radius-thumb: 16px;
  --lm-r-xs: 6px;
  --lm-r-sm: 12px;
  --lm-r-md: 16px;
  --lm-r-lg: 20px;
  --lm-r-card: 28px;
  --lm-r-pill: 9999px;

  /* Elevation Shadows */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
  --shadow-violet-btn: 0 4px 24px rgba(69, 36, 219, 0.34);
  --shadow-chip: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-arrow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -8px 0 32px rgba(0, 0, 0, 0.12);
  --lm-shadow-sm: var(--shadow-chip);
  --lm-shadow-md: var(--shadow-card);
  --lm-shadow-lg: var(--shadow-card-hover);
  --lm-shadow-drawer: var(--shadow-drawer);

  /* Spacing */
  --section-gap: 72px;
  --rail-width: 68px;
  --banner-height: 0px;
  --lm-bottom-bar-h: 68px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--color-mist);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-mist);
  color: var(--color-black);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lm-locked {
  overflow: hidden;
}

/* Strict Typography Weights & Negative Tracking */
.text-20 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.text-16 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.031em;
  font-weight: 500;
}

.text-14 {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.014em;
  font-weight: 400;
}

.text-14-medium {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.014em;
  font-weight: 500;
}

.text-12 {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.017em;
  font-weight: 400;
}

.text-12-medium {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.017em;
  font-weight: 500;
}

.text-9 {
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: -0.058em;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  outline: 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: 0;
}

/* ==========================================================================
   Top App Download Banner (Black Strip 48px)
   ========================================================================== */
.app-banner {
  height: var(--banner-height);
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.app-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: -0.017em;
  font-weight: 400;
}

.app-banner__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-violet-wash);
}

.app-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: -0.017em;
  transition: background 0.2s ease;
}

.app-banner__link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.app-banner__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-stone);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.app-banner__close:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.layout-wrapper {
  display: flex;
  min-height: calc(100vh - var(--banner-height));
  position: relative;
}

/* ==========================================================================
   Sidebar Nav Rail (Desktop ~68px, Pure White, hairline border)
   ========================================================================== */
.nav-rail {
  width: var(--rail-width);
  background-color: var(--color-white);
  border-right: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-rail__top, .nav-rail__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.nav-rail__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-black);
  margin-bottom: 8px;
  position: relative;
}

.nav-rail__logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-violet);
  margin-left: 1px;
}

.nav-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 52px;
  border-radius: 16px;
  color: var(--color-muted);
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-rail__item:hover {
  color: var(--color-black);
  background-color: var(--color-mist);
}

.nav-rail__item.is-active {
  color: var(--color-violet);
  background-color: rgba(84, 51, 235, 0.06);
}

.nav-rail__item.is-active .nav-rail__label {
  color: var(--color-violet);
}

.nav-rail__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-rail__label {
  font-size: 9px;
  letter-spacing: -0.058em;
  font-weight: 500;
  color: var(--color-muted);
}

.nav-rail__badge {
  position: absolute;
  top: 4px;
  right: 6px;
  background-color: var(--color-violet);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(84, 51, 235, 0.3);
}

.nav-rail__badge[hidden] {
  display: none !important;
}

/* ==========================================================================
   Mobile Bottom Floating Bar
   ========================================================================== */
.mobile-nav-bar, .lm-bottom-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  z-index: 95;
  align-items: center;
  gap: 16px;
}

.mobile-nav-bar .nav-rail__item, .lm-bottom-bar .lm-bottom-tab {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  position: relative;
  font-size: 10px;
}

.mobile-nav-bar .nav-rail__item.is-active, .lm-bottom-bar .lm-bottom-tab.is-active {
  color: var(--color-violet);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content, .lm-main {
  flex: 1;
  margin-left: var(--rail-width);
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.container, .lm-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section-gap {
  margin-bottom: var(--section-gap);
}

/* Header Bar */
.top-header-bar {
  background-color: transparent;
  padding: 24px 32px 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions > [data-lm-cart-open] {
  padding: 10px 18px;
}

.top-header-bar > .search-container {
  min-width: 0;
}

.header-brand, .lm-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
}

.header-brand__dot, .hero-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-violet);
  display: inline-block;
}

/* ==========================================================================
   Search Bar (Pill 9999px with round Violet button)
   ========================================================================== */
.search-container, .lm-search {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

.search-pill, .lm-search__form {
  display: flex;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  padding: 5px 6px 5px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.search-pill:focus-within, .lm-search__form:focus-within {
  border-color: var(--color-violet-wash);
  box-shadow: 0 4px 16px rgba(84, 51, 235, 0.12);
}

.search-pill__icon, .lm-search__icon {
  color: var(--color-muted);
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-pill__input, .lm-search__input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  letter-spacing: -0.014em;
  color: var(--color-black);
  min-width: 0;
}

.search-pill__input::placeholder, .lm-search__input::placeholder {
  color: var(--color-stone);
}

.search-pill__btn, .lm-search__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-violet);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-violet-btn);
  position: relative;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.search-pill__btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--color-violet-wash);
  opacity: 0.35;
  z-index: -1;
}

.search-pill__btn:hover {
  transform: scale(1.05);
  background-color: #4625d9;
}

.search-pill__close, .lm-search__close {
  display: none;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-muted);
}

/* Search Dropdown */
.search-dropdown, .lm-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--color-border);
  padding: 12px 8px;
  z-index: 180;
  display: none;
  max-height: 480px;
  overflow-y: auto;
}

.search-dropdown.is-open, .lm-search__dropdown:not([hidden]) {
  display: block;
}

.search-dropdown__item, .lm-search__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 18px;
  transition: background 0.15s ease;
  color: var(--color-black);
}

.search-dropdown__item:hover, .search-dropdown__item:focus,
.lm-search__item:hover, .lm-search__item:focus {
  background: var(--color-mist);
  outline: none;
}

.search-dropdown__thumb, .lm-search__thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-mist);
  flex-shrink: 0;
}

.search-dropdown__info {
  flex: 1;
  min-width: 0;
}

.search-dropdown__title, .lm-search__name {
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__sub {
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-muted);
}

.search-dropdown__price, .lm-search__price {
  font-size: 14px;
  letter-spacing: -0.031em;
  font-weight: 500;
  color: var(--color-black);
  margin-left: auto;
  flex-shrink: 0;
}

.lm-search__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lm-search__empty {
  padding: 16px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
}

.lm-search__all {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-violet);
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ==========================================================================
   Garage Car Selector (9999px brand pills & 28px model cards)
   ========================================================================== */
.lm-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lm-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.lm-garage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(880px, 94vw);
  max-height: 85vh;
  background: var(--color-mist);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--color-border);
  z-index: 160;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  overflow: hidden;
}

.lm-garage.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.lm-garage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.lm-garage__title {
  font-size: 18px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
}

.lm-garage__close-btn, [data-lm-garage-close] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lm-garage__close-btn:hover, [data-lm-garage-close]:hover {
  background: var(--color-stone);
}

.lm-garage__body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.lm-garage__layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lm-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lm-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lm-brand-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-stone);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lm-brand-card.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.lm-brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.lm-brand-card.is-active .lm-brand-logo {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lm-garage__models {
  margin-top: 16px;
}

.lm-models-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.lm-model-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-black);
}

.lm-model-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.lm-model-item span:first-child {
  font-size: 16px;
  letter-spacing: -0.031em;
  font-weight: 500;
}

.lm-model-item--all {
  border: 1px dashed var(--color-border);
  background: transparent;
  box-shadow: none;
  justify-content: center;
  text-align: center;
  color: var(--color-violet);
  font-weight: 500;
}

.lm-garage[data-view="models"] .lm-brands-grid {
  display: none;
}

.lm-garage[data-view="brands"] .lm-garage__models {
  display: none;
}

.lm-garage[data-view="brands"] [data-garage-back] {
  display: none;
}

/* ==========================================================================
   Hero Floating Constellation on White Marble
   ========================================================================== */
.hero-constellation {
  position: relative;
  padding: 48px 0 64px 0;
  text-align: center;
  overflow: visible;
}

.hero-marble-wash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 100%);
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(242, 244, 245, 0.4) 70%, transparent 100%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-center-wordmark {
  position: relative;
  z-index: 5;
  margin: 32px 0 28px 0;
}

.hero-logo-large {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
  color: var(--color-black);
  display: inline-flex;
  align-items: baseline;
}

.hero-logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-violet);
  display: inline-block;
  margin-left: 2px;
  box-shadow: 0 0 16px rgba(84, 51, 235, 0.5);
}

.hero-subtitle {
  font-size: 16px;
  letter-spacing: -0.031em;
  color: var(--color-muted);
  max-width: 480px;
  margin: 12px auto 0 auto;
  font-weight: 400;
}

/* Floating Cards Grid in Hero */
.constellation-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 10;
  margin-top: 36px;
}

.constellation-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.constellation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.constellation-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-mist);
  border-radius: var(--radius-photo);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.constellation-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.constellation-card:hover .constellation-card__img {
  transform: scale(1.04);
}

.constellation-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: -0.058em;
  color: var(--color-black);
}

.constellation-card__title {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 6px;
}

.constellation-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.constellation-card__price {
  font-size: 16px;
  letter-spacing: -0.031em;
  font-weight: 500;
  color: var(--color-black);
}

/* ==========================================================================
   Car Brand Chips (White Pills 9999px)
   ========================================================================== */
.brand-chips-wrap {
  position: relative;
  margin-bottom: var(--section-gap);
}

.brand-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 12px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.brand-chips::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.brand-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-stone);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-chip.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* ==========================================================================
   Product Cards & Section Grid
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title {
  font-size: 20px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  letter-spacing: -0.014em;
  color: var(--color-muted);
  font-weight: 400;
  transition: color 0.15s ease, transform 0.15s ease;
}

.section-link:hover {
  color: var(--color-black);
  transform: translateX(2px);
}

.products-grid, .lm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-card__gallery, .product-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-mist);
  border-radius: var(--radius-photo);
  overflow: hidden;
  margin-bottom: 16px;
  display: block;
}

.product-card__img, .product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img,
.product-card:hover .product-card__thumb img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: -0.017em;
  font-weight: 500;
  color: var(--color-slate-ink);
  z-index: 2;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-slate-ink);
  margin-bottom: 8px;
}

.rating-badge__stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.rating-badge__count {
  color: var(--color-muted);
  font-size: 12px;
}

.product-card__title {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.031em;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-card__specs {
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.product-card__bottom, .product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.product-card__price {
  font-size: 18px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
}

.product-card__price--special {
  color: var(--color-violet);
}

.product-card__price--old {
  font-size: 13px;
  color: var(--color-muted);
  margin-left: 6px;
  text-decoration: line-through;
}

.product-card__btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-mist);
  color: var(--color-black);
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-card__btn-add:hover {
  background-color: var(--color-violet);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(84, 51, 235, 0.35);
  transform: scale(1.06);
}

/* ==========================================================================
   Category Page Specifics (Toyota)
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--color-black);
}

.breadcrumbs__sep {
  color: var(--color-stone);
}

.category-hero {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.category-hero__content {
  max-width: 600px;
}

.category-hero__title, .category-intro h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 12px;
}

.category-hero__desc, .lm-catalog-copy {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--color-muted);
}

.category-hero__badge {
  display: inline-block;
  background: rgba(84, 51, 235, 0.08);
  color: var(--color-violet);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.017em;
  margin-bottom: 12px;
}

/* Category Filter Pills (Camry, RAV4, Hilux, Prado) */
.filter-pills-row, .category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-pill, .category-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .category-chip:hover {
  border-color: var(--color-stone);
  transform: translateY(-2px);
}

.filter-pill.is-active, .category-chip.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.category-toolbar__controls {
  display: flex;
  gap: 16px;
  align-items: center;
}

.category-toolbar select {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 13px;
}

.lm-pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--color-muted);
}

.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
}

.pagination li a, .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-black);
}

.pagination li.active span {
  background: var(--color-violet);
  color: var(--color-white);
  border-color: var(--color-violet);
}

/* ==========================================================================
   Product Detail Page Specifics (Camry V50–55)
   ========================================================================== */
.product-detail-layout, .product-page-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: var(--section-gap);
  align-items: start;
}

.product-gallery-card, .lm-gallery {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.product-gallery__main, .lm-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-mist);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.product-gallery__main > [data-gallery-popup] {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.product-gallery__main > [data-gallery-popup]:focus:not(:focus-visible) {
  outline: none;
}

.product-gallery__main > [data-gallery-popup]:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: -4px;
}

.product-gallery__main-img, .lm-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.product-gallery__thumbs, .lm-gallery__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb, .lm-gallery__thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-thumb);
  background-color: var(--color-mist);
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.gallery-thumb:hover, .lm-gallery__thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb.is-active, .lm-gallery__thumb.is-active {
  border-color: var(--color-violet);
}

.gallery-thumb img, .lm-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Card */
.product-info-card, .product-detail-box {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 36px;
}

.product-info__car-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-mist);
  color: var(--color-slate-ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: -0.017em;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-info__title, .product-detail-box h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-info__rating, .lm-product-rating {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.product-info__price-row, .product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.product-info__price, .product-price-val {
  font-size: 32px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
}

.product-info__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: -0.017em;
  color: #10b981;
  font-weight: 500;
}

.product-info__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Option Selector Pills */
.option-group, .option-section {
  margin-bottom: 24px;
}

.option-group__label, .option-heading {
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.option-group__hint {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

.option-pills, .option-chips-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-pill, .option-chip {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.option-pill:hover, .option-chip:hover {
  border-color: var(--color-stone);
}

.option-pill.is-active, .lm-option-choice:checked + .option-chip, .option-chip.is-active {
  background: var(--color-violet);
  color: var(--color-white);
  border-color: var(--color-violet);
  box-shadow: var(--shadow-violet-btn);
}

.option-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
}

.option-pill.is-active .option-pill__dot, .lm-option-choice:checked + .option-chip .option-pill__dot {
  background: #ffffff;
}

.option-pill:has(input[type="checkbox"]:checked),
.option-chip:has(input[type="checkbox"]:checked) {
  background: var(--color-violet);
  color: var(--color-white);
  border-color: var(--color-violet);
  box-shadow: var(--shadow-violet-btn);
}

.product-info__price.is-updating {
  transform: scale(1.05);
  color: var(--color-violet);
}

.product-info__price {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.lm-option-error {
  display: block;
  margin-top: 8px;
  color: var(--lm-danger);
  font-size: 12px;
  font-weight: 500;
}

/* Action Button: 9999px pill with purple shadow */
.product-actions-row, .product-actions-wrap, .qty-and-cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.qty-pill, .qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--color-mist);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
  cursor: pointer;
}

.qty-btn:active {
  transform: scale(0.92);
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.014em;
}

.btn-add-to-cart, .btn-add-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background-color: var(--color-violet);
  color: var(--color-white);
  font-size: 16px;
  letter-spacing: -0.031em;
  font-weight: 500;
  box-shadow: var(--shadow-violet-btn);
  position: relative;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-add-to-cart::before, .btn-add-cart::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  background: var(--color-violet-wash);
  opacity: 0.35;
  z-index: -1;
}

.btn-add-to-cart:hover, .btn-add-cart:hover {
  background-color: #4625d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(69, 36, 219, 0.45);
}

.btn-add-to-cart:active, .btn-add-cart:active {
  transform: scale(0.98);
}

.btn-add-to-cart.is-loading, .btn-add-cart.is-loading {
  opacity: 0.8;
  cursor: wait;
}

.product-purchase-actions {
  flex-wrap: wrap;
  row-gap: 12px;
}

.product-purchase-actions > .qty-pill {
  flex: none;
}

.product-purchase-actions #button-cart {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 15px 30px;
  border: 1px solid var(--color-border);
  background-color: var(--color-mist);
  color: var(--color-slate-ink);
  box-shadow: none;
}

.product-purchase-actions #button-cart::before {
  content: none;
}

.product-purchase-actions #button-cart > svg {
  flex-shrink: 0;
}

.product-purchase-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 5px;
}

.product-purchase-label > span,
.product-purchase-price [data-price-btn-target] {
  white-space: nowrap;
}

.product-purchase-actions #button-cart:hover:not(:disabled):not(.is-loading):not(.is-added) {
  border-color: var(--color-stone);
}

.product-purchase-actions #button-cart.is-added {
  background-color: var(--color-violet);
  border-color: var(--color-violet);
  color: var(--color-white);
  box-shadow: var(--shadow-violet-btn);
}

.product-purchase-actions #button-cart:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 3px;
}

.product-purchase-actions #button-cart:disabled,
.product-purchase-actions #button-cart.is-loading {
  transform: none;
  opacity: 0.65;
}

.product-purchase-actions #button-cart:disabled {
  cursor: not-allowed;
}

/* Benefits & Specs Block (Pillow-soft card 28px) */
.specs-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin-bottom: var(--section-gap);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.spec-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-item__title {
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  margin-bottom: 4px;
}

.spec-item__desc {
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Tabs & Specifications Table */
.product-info-tabs {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin-bottom: var(--section-gap);
}

.tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.tab-nav-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-mist);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-nav-btn.is-active {
  background: var(--color-violet);
  color: var(--color-white);
  box-shadow: var(--shadow-violet-btn);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th, .spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  text-align: left;
}

.spec-table th {
  color: var(--color-muted);
  font-weight: 400;
  width: 40%;
}

.spec-table td {
  font-weight: 500;
}

/* ==========================================================================
   Product Description & Rich Text Adaptation (Shop Style for .lm-catalog-copy)
   ========================================================================== */
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.lm-catalog-copy {
  --catalog-copy-h3-size: 28px;
  --catalog-copy-h4-size: 24px;
  font-family: 'Open Sans', var(--font-family);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--color-slate-ink);
}

@media (max-width: 768px) {
  .lm-catalog-copy {
    --catalog-copy-h3-size: 23px;
    --catalog-copy-h4-size: 20px;
    font-size: 17px;
  }
}

/* Reset nested Bootstrap container and margins inside description */
.lm-catalog-copy .container,
.lm-catalog-copy .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Responsive Grid Rows */
.lm-catalog-copy .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
  margin-top: 24px;
  margin-bottom: 24px;
  align-items: center;
}

.lm-catalog-copy .row.lead {
  font-size: inherit;
  font-weight: normal;
  line-height: inherit;
}

.lm-catalog-copy .row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Specific pricingTable grid sizing (4 columns on desktop, 2 on tablet, 1 on mobile) */
.lm-catalog-copy .row > .col-lg-3,
.lm-catalog-copy .row > .col-sm-6 {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .lm-catalog-copy .row > .col-lg-3,
  .lm-catalog-copy .row > .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .lm-catalog-copy .row > .col-lg-3,
  .lm-catalog-copy .row > .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 16px;
  }
}

/* Two-column feature rows (e.g. .col-lg order-xl-1) */
.lm-catalog-copy .row > .col-lg,
.lm-catalog-copy .row > .col-md {
  flex: 1 1 320px;
  max-width: 100%;
}

@media (min-width: 992px) {
  .lm-catalog-copy .order-xl-1 { order: 1; }
  .lm-catalog-copy .order-xl-2 { order: 2; }
}

@media (max-width: 768px) {
  .lm-catalog-copy .row > .col-lg,
  .lm-catalog-copy .row > .col-md {
    flex: 1 1 100%;
    margin-bottom: 16px;
  }
}

/* Modern Pillow-Soft Pricing Tables (.pricingTable) */
.lm-catalog-copy .pricingTable {
  background: var(--color-mist);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card); /* 28px */
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-chip);
  transition: transform 0.25s var(--lm-ease), box-shadow 0.25s var(--lm-ease), background 0.25s var(--lm-ease);
}

.lm-catalog-copy .pricingTable:hover {
  transform: translateY(-4px);
  background: var(--color-white);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-stone);
}

.lm-catalog-copy .pricingTable .title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.031em;
  color: var(--color-black);
  margin: 0 0 10px 0;
  text-align: center;
}

.lm-catalog-copy .pricingTable .price-value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--color-violet);
  text-align: center;
  padding: 8px 16px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin: 0 auto 18px auto;
  display: inline-block;
}

.lm-catalog-copy .pricingTable .pricing-content {
  flex: 1 1 auto;
}

.lm-catalog-copy .pricingTable .pricing-content + .price-value {
  margin: 18px auto 0;
}

.lm-catalog-copy .pricingTable .pricing-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-catalog-copy .pricingTable .pricing-content li {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lm-catalog-copy .pricingTable .pricing-content li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-violet);
  flex-shrink: 0;
}

/* Headings in description */
.lm-catalog-copy h2,
.lm-catalog-copy h3,
.lm-catalog-copy h4,
.lm-catalog-copy h5 {
  color: var(--color-black);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  margin-top: 24px;
  margin-bottom: 12px;
}

.lm-catalog-copy h3 {
  font-size: var(--catalog-copy-h3-size);
}

.lm-catalog-copy h4 {
  font-size: var(--catalog-copy-h4-size);
}

/* Paragraphs & lead */
.lm-catalog-copy p,
.lm-catalog-copy .lead {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 16px;
  letter-spacing: inherit;
}

/* Text alignment & spacing helpers */
.lm-catalog-copy .text-center {
  text-align: center !important;
}

.lm-catalog-copy .mt-3 {
  margin-top: 16px !important;
}

.lm-catalog-copy .mt-5 {
  margin-top: 32px !important;
}

.lm-catalog-copy .mb-5 {
  margin-bottom: 32px !important;
}

.lm-catalog-copy .offset-lg-2 {
  margin-left: auto !important;
  margin-right: auto !important;
}

.lm-catalog-copy .col-lg-8.offset-lg-2 {
  flex: 0 0 100%;
  max-width: 800px;
}

/* Modernize legacy <mark> tag into pillow chip */
.lm-catalog-copy mark {
  background: rgba(84, 51, 235, 0.08);
  color: var(--color-violet);
  font-weight: 600;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 14px;
}

/* Images inside product description */
.lm-catalog-copy img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-photo); /* 20px */
  background: var(--color-mist);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-chip);
  margin: 14px auto;
  display: block;
  object-fit: cover;
  transition: transform 0.25s var(--lm-ease);
}

.lm-catalog-copy img:hover {
  transform: scale(1.02);
}

/* Responsive Videos (Rutube, YouTube) - prevent mobile overflow */
.lm-catalog-copy iframe,
.lm-catalog-copy .note-video-clip {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-radius: var(--radius-card); /* 28px */
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  margin: 20px auto;
  display: block;
}

/* Horizontal Dividers */
.lm-catalog-copy hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 36px 0;
}

/* List styling */
.lm-catalog-copy ul:not(.list-unstyled):not(.pricing-content ul) {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-catalog-copy ul:not(.list-unstyled):not(.pricing-content ul) > li {
  margin-bottom: 4px;
  color: inherit;
  font-size: inherit;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lm-catalog-copy ul:not(.list-unstyled):not(.pricing-content ul) > li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-violet);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   Slide-out Cart Drawer
   ========================================================================== */
.cart-backdrop, .drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.is-open, .drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--color-white);
  box-shadow: var(--shadow-drawer);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open, .cart-backdrop.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer__header, .drawer-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__title, .drawer-head h2 {
  font-size: 20px;
  letter-spacing: -0.05em;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.cart-drawer__count {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 400;
}

.cart-drawer__close, .drawer-close-btn, [data-lm-drawer-close] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.cart-drawer__close:hover, .drawer-close-btn:hover, [data-lm-drawer-close]:hover {
  background: var(--color-stone);
}

.cart-drawer__body, .drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item, .drawer-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__img, .drawer-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-photo);
  object-fit: cover;
  background: var(--color-mist);
  flex-shrink: 0;
}

.cart-item__info, .drawer-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item__title, .drawer-item__name {
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--color-black);
}

.cart-item__spec, .drawer-item__options {
  font-size: 12px;
  letter-spacing: -0.017em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.cart-item__row, .drawer-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}

.cart-item__price, .drawer-item__price {
  font-size: 16px;
  letter-spacing: -0.031em;
  font-weight: 500;
}

.cart-item__del, .drawer-remove-btn {
  color: var(--color-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.cart-item__del:hover, .drawer-remove-btn:hover {
  color: #ef4444;
}

.cart-drawer__footer, .drawer-foot {
  padding: 24px 28px;
  border-top: 1px solid var(--color-border);
  background: var(--color-mist);
}

.cart-summary-row, .drawer-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  letter-spacing: -0.014em;
  margin-bottom: 8px;
  color: var(--color-muted);
}

.cart-summary-total, .drawer-total-amount {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--color-black);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.cart-checkout-btn, [data-lm-drawer-checkout-link] {
  width: 100%;
  margin-top: 18px;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-violet);
  color: var(--color-white);
  font-size: 16px;
  letter-spacing: -0.031em;
  font-weight: 500;
  box-shadow: var(--shadow-violet-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.2s ease;
  cursor: pointer;
}

.cart-checkout-btn:hover, [data-lm-drawer-checkout-link]:hover {
  background: #4625d9;
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-msg, .lm-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: -0.014em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast-msg.is-visible, .lm-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.lm-toast[data-type="error"] {
  background: #ef4444;
}

/* ==========================================================================
   Footer Minimalist
   ========================================================================== */
.preview-footer, .lm-footer {
  margin-top: auto;
  padding: 48px 0 64px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-mist);
}

.preview-footer__inner, .lm-footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.preview-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
  letter-spacing: -0.014em;
}

.preview-footer__links a:hover {
  color: var(--color-black);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .constellation-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid, .lm-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-layout, .product-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 48px;
    --rail-width: 0px;
  }
  .nav-rail {
    display: none;
  }
  .mobile-nav-bar, .lm-bottom-bar {
    display: flex;
  }
  .layout-wrapper {
    overflow-x: clip;
  }
  .main-content, .lm-main {
    margin-left: 0;
    padding-bottom: 90px;
  }
  .container, .lm-container {
    padding: 0 16px;
  }
  .top-header-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .top-header-bar > .header-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .top-header-bar > .search-container {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .top-header-bar > .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }
  .header-actions > .brand-chip {
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
  }
  .constellation-cards {
    grid-template-columns: 1fr;
  }
  .products-grid, .lm-product-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo-large {
    font-size: 44px;
  }
  .category-hero {
    flex-direction: column;
    padding: 24px 20px;
  }
  .product-info-card, .product-detail-box {
    padding: 24px 20px;
  }
  .product-gallery-card, .lm-gallery {
    padding: 16px;
  }
  .specs-card, .product-info-tabs {
    padding: 24px 18px;
  }
  #product-product .tab-nav {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
    margin-inline: -8px;
    margin-bottom: 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-mist);
  }
  #product-product .tab-nav-btn {
    flex: 1 0 auto;
    min-height: 44px;
    padding: 6px clamp(3px, 1.2vw, 10px);
    font-size: clamp(12px, 3.1vw, 14px);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  #product-product .tab-nav-btn.is-active {
    box-shadow: none;
  }
  #product-product .tab-nav-btn:focus-visible {
    outline: 2px solid var(--color-violet);
    outline-offset: 2px;
  }
  #product-product .tab-panel-content {
    min-width: 0;
    text-align: start;
    overflow-wrap: anywhere;
  }
  #product-product .spec-table {
    table-layout: fixed;
  }
  #product-product .spec-table th,
  #product-product .spec-table td {
    padding: 10px 8px;
    vertical-align: top;
    text-align: start;
  }
  #product-product #review .text-right {
    text-align: start;
  }
  .app-banner__inner {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .header-actions > [data-lm-cart-open] {
    width: 44px;
    padding: 0;
  }
  .header-actions > [data-lm-cart-open] > span {
    display: none;
  }
}
