/* Smooth movement with a gently illuminated frame. */
.product {
  transform: none !important;
  transform-style: flat;
  overflow: hidden;
  animation: none !important;
  border-color: rgba(var(--glow), 0.26);
  box-shadow:
    0 -12px 25px -20px rgba(var(--glow), 0.6),
    0 14px 28px -22px rgba(var(--glow), 0.6);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 550ms ease, box-shadow 650ms ease !important;
}

.product::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--glow), 0.5), transparent);
  box-shadow: none;
}

.product::after,
.product:focus-within::after {
  inset: 0;
  opacity: 0 !important;
  border-radius: inherit;
  background: none !important;
  box-shadow: inset 0 0 0 1px rgba(var(--glow), 0.55), inset 0 0 40px rgba(var(--glow), 0.07);
  transition: opacity 600ms ease !important;
  pointer-events: none;
}

.product .product-visual img,
.product:focus-within .product-visual img {
  transform: translateY(0) scale(1.045) !important;
  filter: none !important;
  transition: transform 750ms cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

@media (hover: hover) {
  .product:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(var(--glow), 0.85);
    box-shadow:
      0 0 20px rgba(var(--glow), 0.32),
      0 0 48px rgba(var(--glow), 0.18),
      0 18px 42px #0005;
  }

  .product:hover::after {
    opacity: 1 !important;
  }

  .product:hover .product-visual img {
    transform: translateY(0) scale(1.045) !important;
  }
}

.product-visual:active {
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product,
  .product::after,
  .product .product-visual img {
    transition: none !important;
  }

  .product:hover .product-visual img {
    transform: translateY(0) scale(1.045) !important;
  }

  .product:hover {
    transform: none !important;
  }
}

/* Compact spacing while preserving readable body text. */
.header-inner { height: 62px; }
.catalog { padding: 46px 0 64px; }
.catalog .section-title { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.section-head { margin-bottom: 24px; padding-bottom: 18px; }
.section-head .section-lead { font-size: .94rem; }
.catalog-toolbar { margin-bottom: 18px; gap: 12px; }
.search-input, .sort-select { height: 42px; }
.catalog-meta { margin-bottom: 16px; }
.products { gap: 18px; }
.product-visual, .product-visual.tone-violet, .product-visual.tone-blue {
  aspect-ratio: 1.18;
}
.product-info { padding: 8px 18px 18px; }
.product h3 { font-size: 1.5rem; margin: 7px 0 10px; min-height: 2.4em; }
.product .product-description { line-height: 1.6; min-height: 3.2em; margin-bottom: 12px; }
.spec-link { padding: 9px 0; margin-bottom: 16px; }
.price { font-size: 1.7rem; }
.add-button { min-height: 40px; padding: 10px 12px; }
.product-tag { top: 14px; left: 16px; }
.why, .contact { padding: 64px 0; }
.why .section-title { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.why-grid { gap: 40px; }
.why-point { padding: 16px; gap: 14px; }
.contact-box { padding: 36px 40px; }
.contact-box h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.builder { padding: 54px 0; }
.builder .section-title { font-size: clamp(2rem, 3.4vw, 3.1rem); }
#buildFields label { padding: 12px 14px; }
.footer { padding-top: 32px; }
#details { width: min(1120px, 95vw); padding: 26px; }
#details .details-grid { gap: 28px; }
#details h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); }
#details .specs li { padding: 10px 12px; min-height: 64px; }
.upgrade-controls { padding: 16px; }
.upgrade-choice { padding: 10px; }

@media (max-width: 760px) {
  .catalog { padding-top: 30px; }
  .product-visual, .product-visual.tone-violet, .product-visual.tone-blue { aspect-ratio: 1.15; }
  .why-grid { gap: 24px; }
  .contact-box { padding: 26px; }
  #details { padding: 18px; }
}

/* The requested card lift stays enabled when system motion is reduced. */
#products > .product {
  transform: translateY(0) !important;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1), border-color 420ms ease, box-shadow 420ms ease !important;
}

@media (hover: hover) {
  #products > .product:hover {
    transform: translateY(-8px) !important;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease, box-shadow 320ms ease !important;
  }
}
