/* Perfect Electronics — storefront styles */

:root {
  --ep-bg: #F7F8FA;
  --ep-neon: #CA8A04;
  --ep-emerald: #E6BD00;
  --ep-glass: rgba(255, 255, 255, 0.92);
  --ep-border: rgba(202, 138, 4, 0.28);
  --ep-yellow: #FFD500;
  --ep-yellow-dark: #E6BD00;
}

#circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.theme-light .scanline {
  display: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.035) 2px,
    rgba(0, 0, 0, 0.035) 4px
  );
}

.site-header,
.site-main,
.site-footer,
.cart-drawer,
.cart-overlay,
.toast-stack,
.qv-modal,
.qv-overlay {
  position: relative;
  z-index: 10;
}

.circuit-trace {
  stroke: var(--ep-emerald);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 8 4;
  animation: circuit-dash 2s linear infinite;
}

@keyframes circuit-dash {
  to { stroke-dashoffset: -24; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 213, 0, 0.35)); }
  50% { filter: drop-shadow(0 0 14px rgba(230, 189, 0, 0.7)); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes badge-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 213, 0, 0.55); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 213, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 213, 0, 0); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes ring-spin {
  to { transform: rotate(-360deg); }
}

@keyframes trace-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-toast { animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.animate-spin-slow { animation: spin-slow 24s linear infinite; }
.animate-ring-spin { animation: ring-spin 18s linear infinite; }
.badge-pulse { animation: badge-pulse 0.6s ease-out; }

/* ─── Refined product cards (clean glass, soft hover) ─── */
.product-card-shell {
  height: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(202, 138, 4, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s,
    box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 189, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 213, 0, 0.12),
    0 14px 38px rgba(15, 23, 42, 0.1),
    0 0 24px rgba(255, 213, 0, 0.12);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fffbeb;
}

.product-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255, 251, 235, 0.75), transparent);
  pointer-events: none;
}

.product-card__body {
  border-top: 1px solid rgba(202, 138, 4, 0.12);
}

.product-grid--featured {
  gap: 1.25rem;
}

.cart-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ep-glass) !important;
  backdrop-filter: blur(16px);
}
.cart-drawer.is-open { transform: translateX(0); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Circuit-trace framed cards / CTAs */
.trace-frame {
  position: relative;
}
.trace-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, var(--ep-neon), var(--ep-emerald), transparent, var(--ep-neon));
  background-size: 200% 100%;
  animation: trace-border 3s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.cyber-ring {
  position: absolute;
  inset: -12%;
  border: 1px dashed rgba(202, 138, 4, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.cyber-ring--inner {
  inset: -4%;
  border-style: solid;
  border-color: rgba(255, 213, 0, 0.2);
  border-top-color: var(--ep-yellow);
  border-right-color: transparent;
}

.ship-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 213, 0, 0.18);
  overflow: hidden;
}
.ship-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #E6BD00, #FFD500);
  box-shadow: 0 0 12px rgba(255, 213, 0, 0.45);
  transition: width 0.4s ease;
}

.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  z-index: 250;
}
.qv-modal {
  position: fixed;
  inset: 5% 50%;
  transform: translateX(-50%);
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow: auto;
  z-index: 260;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(202, 138, 4, 0.28);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

@media (max-width: 767px) {
  .nav-primary {
    display: flex !important;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(202, 138, 4, 0.25);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 90;
  }
  .nav-primary.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-dropdown.is-open .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: block;
    padding-left: 1rem;
  }
  .header-search-inline {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   Commerce Home — light robotics marketplace
   ────────────────────────────────────────────────────────── */
.commerce-home {
  --commerce-yellow: #ffd500;
  --commerce-yellow-dark: #e6bd00;
  --commerce-ink: #1f2937;
  --commerce-blue: #075d96;
  --commerce-red: #d83b4b;
  --commerce-line: #e5e7eb;
  background: #fff !important;
  color: var(--commerce-ink) !important;
  font-weight: 400;
}

.commerce-home .scanline {
  display: none;
}

.commerce-home #circuit-canvas {
  display: block;
  opacity: 0.34;
  mix-blend-mode: multiply;
}

.commerce-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.commerce-utility {
  background: #fff;
  border-bottom: 1px solid var(--commerce-line);
  color: #64748b;
  font-size: 0.72rem;
}

.commerce-utility .commerce-container {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.commerce-utility nav {
  display: flex;
  gap: 1.25rem;
}

.commerce-utility a {
  color: #475569;
  text-decoration: none;
}

.commerce-utility a:hover {
  color: #b88900;
}

.commerce-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #eceff3;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
}

.commerce-header .btn-ghost {
  color: #475569 !important;
}

.commerce-header .btn-ghost:hover {
  color: #a77900 !important;
  background: #fff8d6 !important;
}

.commerce-header .nav-dropdown__menu {
  background: #fff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12) !important;
}

.commerce-header .nav-dropdown__menu a {
  color: #475569 !important;
}

.commerce-header .nav-dropdown__menu a:hover {
  color: #9a7200 !important;
  background: #fff9df !important;
}

.commerce-support {
  align-items: center;
  gap: 0.55rem;
  color: #475569;
  margin-right: 0.35rem;
}

.commerce-support__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--commerce-yellow);
  border-radius: 50%;
  color: #b88900;
  font-size: 1.15rem;
}

.commerce-support span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.commerce-support small {
  color: #64748b;
}

.commerce-searchbar {
  background: var(--commerce-yellow);
  position: relative;
  z-index: 80;
}

.commerce-searchbar__inner {
  min-height: 46px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.commerce-category-toggle,
.commerce-cart {
  border: 0;
  background: transparent;
  color: #2f3640;
  font: 600 0.8rem Outfit, sans-serif;
  cursor: pointer;
}

.commerce-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.75rem;
}

.commerce-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 42px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.commerce-search input,
.commerce-search select {
  border: 0;
  outline: 0;
  color: #475569;
  background: #fff;
  padding: 0 1rem;
  font: 400 0.78rem Outfit, sans-serif;
}

.commerce-search select {
  border-left: 1px solid #e5e7eb;
}

.commerce-search button {
  border: 0;
  background: #374151;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.commerce-cart {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.commerce-cart em {
  position: absolute;
  top: -8px;
  left: 12px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #374151;
  color: #fff;
  display: grid;
  place-items: center;
  font: normal 600 0.62rem Outfit, sans-serif;
}

.commerce-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 32%, rgba(255, 213, 0, 0.055), transparent 20%),
    radial-gradient(circle at 92% 65%, rgba(34, 211, 238, 0.045), transparent 22%),
    rgba(255, 255, 255, 0.84);
  min-height: 100vh;
  padding-bottom: 2.5rem;
}

.commerce-shell > .commerce-container {
  position: relative;
  z-index: 1;
}

.commerce-market-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: stretch;
}

.commerce-market-main {
  min-width: 0;
}

.commerce-section--nested {
  padding: 1.5rem 1.5rem 0;
}

.commerce-sidebar {
  border: 1px solid #ead573;
  border-top: 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

.commerce-sidebar__title {
  display: none;
  background: var(--commerce-yellow);
  color: #29313d;
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.commerce-sidebar > a {
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid #edf0f3;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.18s, background 0.18s, padding 0.18s;
}

.commerce-sidebar > a:hover {
  color: #9c7300;
  background: #fff9dc;
  padding-left: 1rem;
}

.commerce-sidebar > a b {
  color: #a7adb5;
  font-size: 1.1rem;
}

.commerce-assurance {
  margin-top: 1.25rem;
  border-top: 1px solid #edf0f3;
  background: #fff;
}

.commerce-assurance > div {
  min-height: 70px;
  padding: 0.8rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #edf0f3;
}

.commerce-assurance > div > span {
  width: 34px;
  color: #d2aa00;
  font-size: 1.3rem;
  text-align: center;
}

.commerce-assurance p {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
}

.commerce-assurance small {
  color: #7c8797;
}

.commerce-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: #1f2937;
}

.commerce-hero__bg,
.commerce-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.commerce-hero__bg {
  object-fit: cover;
  object-position: center;
}

.commerce-hero__overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.12) 78%),
    linear-gradient(0deg, rgba(255, 213, 0, 0.11), transparent 55%);
}

.commerce-hero__copy {
  position: relative;
  z-index: 2;
  width: min(560px, 62%);
  padding: 3.3rem 2.7rem 5rem;
  color: #253244;
}

.commerce-kicker {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: var(--commerce-yellow);
  color: #2d3440;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.commerce-hero h1 {
  margin: 0;
  font: 800 clamp(2rem, 4vw, 3.6rem)/1.05 Outfit, sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.commerce-hero h1 strong {
  color: var(--commerce-yellow);
}

.commerce-hero__copy > p {
  color: #647184;
  max-width: 500px;
  margin: 1rem 0 1.5rem;
  font-size: 1rem;
}

.commerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font: 700 0.74rem Outfit, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.commerce-btn--primary {
  background: var(--commerce-yellow);
  color: #29313d;
}

.commerce-btn--primary:hover {
  background: #ffe34f;
  color: #111827;
}

.commerce-btn--ghost {
  border-color: rgba(55, 65, 81, 0.45);
  color: #354052;
  margin-left: 0.5rem;
}

.commerce-btn--ghost:hover {
  background: #354052;
  color: #fff;
}

.commerce-hero__product {
  position: absolute;
  z-index: 2;
  object-fit: cover;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.commerce-hero__product--1 {
  right: 7%;
  top: 14%;
  width: 25%;
  aspect-ratio: 1;
  transform: rotate(6deg);
}

.commerce-hero__product--2 {
  right: 27%;
  bottom: 19%;
  width: 18%;
  aspect-ratio: 1;
  transform: rotate(-8deg);
}

.commerce-hero__product--3 {
  right: 3%;
  bottom: 12%;
  width: 17%;
  aspect-ratio: 1;
  transform: rotate(-3deg);
}

.commerce-hero__stats {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 213, 0, 0.94);
  color: #374151;
}

.commerce-hero__stats span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-right: 1px solid rgba(55, 65, 81, 0.17);
  font-size: 0.72rem;
}

.commerce-hero__stats strong {
  font-size: 0.9rem;
}

.commerce-section {
  padding-top: 2.2rem;
}

.commerce-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e6e8eb;
  margin-bottom: 1.2rem;
}

.commerce-heading > div:first-child {
  position: relative;
  padding-bottom: 0.65rem;
}

.commerce-heading > div:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 76px;
  height: 2px;
  background: var(--commerce-yellow);
}

.commerce-heading span {
  display: block;
  color: #b08700;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}

.commerce-heading h2,
.commerce-mini-column h2,
.commerce-callback h2 {
  margin: 0;
  color: #303844;
  font: 500 1.35rem Outfit, sans-serif;
}

.commerce-heading > a {
  color: #8a6a00;
  font-size: 0.76rem;
  text-decoration: none;
  padding-bottom: 0.65rem;
  align-self: flex-end;
}

.commerce-deals {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #d9b900 #f5f5f5;
  padding: 0.15rem 0.1rem 0.85rem;
}

.commerce-deals::-webkit-scrollbar {
  height: 6px;
}

.commerce-deals::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.commerce-deals::-webkit-scrollbar-thumb {
  background: #d9b900;
  border-radius: 999px;
}

.commerce-slider-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
  padding-bottom: 0.65rem;
}

.commerce-slider-actions > a {
  color: #8a6a00;
  font-size: 0.74rem;
  text-decoration: none;
  margin-left: 0.25rem;
  line-height: 1;
  white-space: nowrap;
}

.commerce-slider-count {
  color: #8b95a3 !important;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0.25rem 0 0 !important;
}

.commerce-slider-arrow {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #dfc329;
  background: #fff;
  color: #735a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.commerce-slider-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.commerce-slider-arrow:hover {
  background: var(--commerce-yellow);
  color: #29313d;
  transform: scale(1.06);
}

.commerce-product {
  --product-pad: 0.95rem;
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(15, 23, 42, 0.04);
  transition:
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s;
}

.commerce-product::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--commerce-yellow), #f59e0b 55%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}

.commerce-product:hover {
  border-color: #e2c322;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 44px rgba(15, 23, 42, 0.11);
  transform: translateY(-6px);
}

.commerce-product:hover::after {
  transform: scaleX(1);
}

.commerce-product__media {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 213, 0, 0.2), transparent 36%),
    radial-gradient(circle at 18% 82%, rgba(148, 163, 184, 0.12), transparent 40%),
    linear-gradient(160deg, #fbfcfd 0%, #f4f6f8 100%);
}

.commerce-product__media::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 58%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.12), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.commerce-product__image {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.commerce-product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.15rem 1.05rem 1.35rem;
  background: transparent;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.16));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.commerce-product:hover .commerce-product__image img {
  transform: scale(1.08) translateY(-4px);
}

.commerce-product__badges {
  position: absolute;
  inset: 0.7rem 0.7rem auto;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}

.commerce-save,
.commerce-new,
.commerce-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 24px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font: 700 0.62rem Outfit, sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.commerce-save {
  background: linear-gradient(135deg, #ffd500, #f5b800);
  color: #2a3140;
}

.commerce-new {
  background: #1f2937;
  color: #fff;
}

.commerce-stock {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 235, 240, 0.9);
  color: #64748b;
}

.commerce-stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.commerce-stock--ok { color: #059669; }
.commerce-stock--low { color: #d97706; }
.commerce-stock--out { color: #e11d48; }

.commerce-product__actions {
  position: absolute;
  z-index: 3;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.commerce-quick,
.commerce-detail {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e7ec;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  color: #596579;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.commerce-product:hover .commerce-quick,
.commerce-product:hover .commerce-detail,
.commerce-quick:focus-visible,
.commerce-detail:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.commerce-product:hover .commerce-detail {
  transition-delay: 0.05s;
}

.commerce-quick:hover,
.commerce-detail:hover {
  color: #1f2937;
  border-color: #e0c11a;
  background: var(--commerce-yellow);
}

.commerce-product__body {
  padding: 0.95rem var(--product-pad) 1.05rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}

.commerce-product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.commerce-product__cat {
  display: inline-flex;
  align-items: center;
  max-width: 62%;
  min-height: 22px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fff8d6;
  border: 1px solid #f0e2a0;
  color: #8a6a00;
  font: 700 0.58rem Outfit, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commerce-product__sku {
  color: #98a2b3;
  font: 500 0.58rem/1 "JetBrains Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commerce-product__eyebrow {
  margin: 0 0 0.38rem;
  color: #8c96a5;
  font: 600 0.58rem/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commerce-product h3 {
  margin: 0;
  font: 700 0.95rem/1.3 Outfit, sans-serif;
  min-height: 2.6em;
  letter-spacing: -0.01em;
}

.commerce-product h3 a {
  color: #1f2937;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.commerce-product h3 a:hover {
  color: #9a7400;
}

.commerce-product__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  margin: 0.4rem 0 0;
  color: #7b8797;
  font-size: 0.7rem;
  line-height: 1.4;
}

.commerce-product__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  white-space: nowrap;
}

.commerce-product__stars {
  color: #f4c400;
  font-size: 0.72rem;
  letter-spacing: -0.05em;
}

.commerce-product__rating b {
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.commerce-product__rating small {
  color: #94a3b8;
  font-size: 0.62rem;
}

.commerce-product__footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f4f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.commerce-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.commerce-price strong {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.commerce-price del {
  color: #94a3b8;
  font-size: 0.7rem;
}

.commerce-price small {
  flex-basis: 100%;
  color: #94a3b8;
  font-size: 0.56rem;
  margin-top: -0.1rem;
}

.commerce-add {
  min-width: 44px;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, var(--commerce-yellow));
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: 700 0.7rem Outfit, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(210, 170, 0, 0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.commerce-add:hover {
  background: linear-gradient(180deg, #ffef8a, #ffd500);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(210, 170, 0, 0.28);
}

.commerce-add:active,
.commerce-add.is-pressed {
  transform: translateY(0) scale(0.96);
  box-shadow: inset 0 2px 6px rgba(120, 90, 0, 0.2);
}

.commerce-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
  .commerce-quick,
  .commerce-detail {
    opacity: 0.95;
    transform: none;
  }
}

.commerce-product--deal {
  flex: 0 0 calc(50% - 0.5rem);
  display: grid;
  grid-template-columns: 44% 56%;
  border: 1px solid #ead15a;
  min-height: 250px;
  scroll-snap-align: start;
  background:
    linear-gradient(120deg, #fffef6 0%, #fff 48%);
}

.commerce-product--deal .commerce-product__media {
  aspect-ratio: auto;
  height: 100%;
  border-right: 1px solid #f1e7b8;
}

.commerce-product--deal .commerce-product__media::before {
  bottom: 14%;
  width: 70%;
}

.commerce-product--deal .commerce-product__body {
  justify-content: center;
  padding: 1.15rem 1.2rem;
}

.commerce-product--deal h3 {
  font-size: 1.05rem;
  min-height: auto;
}

.commerce-product--deal .commerce-product__desc {
  font-size: 0.76rem;
  min-height: 0;
}

.commerce-product--deal .commerce-product__actions {
  flex-direction: row;
}

.commerce-departments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.commerce-department-card {
  position: relative;
  min-height: 180px;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 213, 0, 0.15), transparent 35%),
    linear-gradient(140deg, #fff 0%, #fafbfc 60%, #f4f6f8 100%);
  color: #374151;
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(105px, 0.8fr);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
  transition:
    border-color 0.28s,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s;
}

.commerce-department-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--commerce-yellow), #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.commerce-department-card:hover {
  border-color: #e3c329;
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.commerce-department-card:hover::after {
  transform: scaleX(1);
}

.commerce-department-card__copy {
  position: relative;
  z-index: 2;
  padding: 1.05rem 0.4rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.commerce-department-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--commerce-yellow);
  color: #354052 !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  box-shadow: 0 7px 16px rgba(220, 179, 0, 0.22);
}

.commerce-department-card__copy small {
  margin-top: 0.75rem;
  color: #a17a00;
  font: 700 0.58rem "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.commerce-department-card__copy strong {
  margin-top: 0.18rem;
  color: #24364b;
  font-size: 1rem;
  line-height: 1.2;
}

.commerce-department-card__copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.38rem 0 0;
  color: #7b8797;
  font-size: 0.68rem;
  line-height: 1.35;
}

.commerce-department-card__copy b {
  margin-top: auto;
  padding-top: 0.55rem;
  color: #735b00;
  font-size: 0.65rem;
}

.commerce-department-card__copy b i {
  display: inline-block;
  margin-left: 0.2rem;
  font-style: normal;
  transition: transform 0.2s;
}

.commerce-department-card:hover .commerce-department-card__copy b i {
  transform: translateX(4px);
}

.commerce-department-card__media {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.commerce-department-card__media::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 213, 0, 0.14);
  right: -35px;
  top: 20px;
  transition: transform 0.35s;
}

.commerce-department-card__media img {
  position: relative;
  z-index: 1;
  width: 110%;
  height: 82%;
  object-fit: contain;
  padding: 0.5rem;
  filter: drop-shadow(0 10px 10px rgba(15, 23, 42, 0.15));
  transform: translateX(8px);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.commerce-department-card:hover .commerce-department-card__media img {
  transform: translateX(0) scale(1.08) rotate(-2deg);
}

.commerce-department-card:hover .commerce-department-card__media::before {
  transform: scale(1.18);
}

.commerce-heading--tabs {
  align-items: center;
}

.commerce-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.commerce-tabs a,
.commerce-tabs button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #8b95a3;
  text-decoration: none;
  white-space: nowrap;
  font: 600 0.75rem Outfit, sans-serif;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.commerce-tabs a:hover,
.commerce-tabs button:hover {
  color: #5b4a00;
  background: #fff8d6;
}

.commerce-tabs a.is-active,
.commerce-tabs button.is-active {
  color: #5b4a00;
  border-color: #e0c51c;
  background: #fff8d6;
}

.commerce-products-row[data-bestsellers-panel] {
  display: none;
}

.commerce-products-row[data-bestsellers-panel].is-active {
  display: grid;
  animation: commerce-tab-in 0.35s ease both;
}

@keyframes commerce-tab-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.commerce-products-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.commerce-products-row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commerce-content-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
}

.commerce-callback {
  border-right: 1px solid #eceff3;
  padding-right: 1.2rem;
}

.commerce-callback > span {
  color: #b08700;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.commerce-callback h2 {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
  margin: 0.2rem 0 1rem;
}

.commerce-callback label {
  display: block;
  color: #4b5563;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.commerce-callback input,
.commerce-callback select,
.commerce-callback textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  color: #374151;
  outline: 0;
  padding: 0.55rem 0.75rem;
  font: 400 0.76rem Outfit, sans-serif;
}

.commerce-callback textarea {
  border-radius: 12px;
  resize: vertical;
}

.commerce-callback input:focus,
.commerce-callback select:focus,
.commerce-callback textarea:focus {
  border-color: #d7b500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.16);
}

.commerce-service-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem;
  border: 1px solid #ece7d2;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 213, 0, 0.12) 0%, rgba(255, 255, 255, 0.95) 38%, #fff 100%),
    radial-gradient(circle at 100% 0%, rgba(255, 213, 0, 0.16), transparent 42%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.commerce-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #374151;
  text-decoration: none;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.commerce-service-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--commerce-yellow), transparent 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.commerce-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #735a00;
  background: linear-gradient(160deg, #ffe566, #ffd500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.commerce-service-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.commerce-service-card--bom .commerce-service-card__icon {
  color: #075d96;
  background: linear-gradient(160deg, #dff4ff, #bae6fd);
}

.commerce-service-card--pinout .commerce-service-card__icon {
  color: #0f766e;
  background: linear-gradient(160deg, #d9f7f2, #99f6e4);
}

.commerce-service-card--rent .commerce-service-card__icon {
  color: #9a3412;
  background: linear-gradient(160deg, #ffedd5, #fdba74);
}

.commerce-service-card__copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.commerce-service-card__copy strong {
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.commerce-service-card__copy small {
  color: #8b95a3;
  font-size: 0.68rem;
  line-height: 1.3;
}

.commerce-service-card__go {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a6a00;
  background: #fff8d6;
  border: 1px solid #ead573;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.commerce-service-card:hover {
  transform: translateY(-3px);
  border-color: #e4c326;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.commerce-service-card:hover::before {
  opacity: 1;
}

.commerce-service-card:hover .commerce-service-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.commerce-service-card:hover .commerce-service-card__go {
  transform: translateX(3px);
  background: var(--commerce-yellow);
  color: #1f2937;
}

.commerce-shelves-section {
  padding-bottom: 0.5rem;
}

.commerce-shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.commerce-shelf {
  position: relative;
  background:
    linear-gradient(180deg, #fffef8 0%, #ffffff 42%),
    #fff;
  border: 1px solid #ece7d2;
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.commerce-shelf::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--commerce-yellow), #f59e0b);
}

.commerce-shelf--selling::before {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.commerce-shelf--featured::before {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.commerce-shelf--sale::before {
  background: linear-gradient(180deg, #fb7185, #e11d48);
}

.commerce-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 0.85rem 1.25rem;
  border-bottom: 1px solid #f0ebda;
}

.commerce-shelf__head span {
  display: block;
  color: #b08700;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.commerce-shelf__head h2 {
  margin: 0;
  color: #303844;
  font: 600 1.12rem Outfit, sans-serif;
}

.commerce-shelf__head a {
  color: #8a6a00;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.commerce-shelf__head a:hover {
  color: #5c4800;
  border-bottom-color: #dfc329;
}

.commerce-shelf__list {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.55rem 0.55rem;
}

.commerce-shelf__row {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr) 36px;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  transition: background 0.22s ease, transform 0.22s ease;
}

.commerce-shelf__row + .commerce-shelf__row {
  border-top: 1px solid #f3f0e6;
}

.commerce-shelf__row:hover {
  background: #fff8d9;
  transform: translateX(3px);
}

.commerce-shelf__mark {
  display: grid;
  place-items: center;
}

.commerce-shelf__mark b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff4b8;
  color: #735a00;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.commerce-shelf--selling .commerce-shelf__mark b {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f2937;
  color: #ffd500;
  font-size: 0.78rem;
}

.commerce-shelf--selling .commerce-shelf__row:nth-child(1) .commerce-shelf__mark b {
  background: linear-gradient(145deg, #ffd500, #f59e0b);
  color: #1f2937;
}

.commerce-shelf--featured .commerce-shelf__mark b {
  background: #e0f7ff;
  color: #0369a1;
  font-size: 0.8rem;
}

.commerce-shelf--sale .commerce-shelf__mark b {
  background: #ffe4e8;
  color: #be123c;
}

.commerce-shelf__media {
  display: grid;
  place-items: center;
  width: 72px;
  height: 64px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 213, 0, 0.18), transparent 55%),
    #f8fafc;
  border: 1px solid #eef1f4;
  overflow: hidden;
}

.commerce-shelf__media img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.12));
  transition: transform 0.28s ease;
}

.commerce-shelf__row:hover .commerce-shelf__media img {
  transform: scale(1.08);
}

.commerce-shelf__copy {
  min-width: 0;
}

.commerce-shelf__copy > a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.commerce-shelf__copy > a:hover {
  color: #075d96;
}

.commerce-shelf__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.28rem 0 0;
  color: #8b95a3;
  font-size: 0.66rem;
}

.commerce-shelf__meta span {
  color: #b45309;
  font-weight: 700;
}

.commerce-shelf__meta small {
  color: #9aa3b2;
}

.commerce-shelf__price {
  margin: 0.28rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.commerce-shelf__price strong {
  color: var(--commerce-red);
  font-size: 0.9rem;
  font-weight: 800;
}

.commerce-shelf__price del {
  color: #9aa3b2;
}

.commerce-shelf__add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dfc329;
  background: #fff;
  color: #735a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.commerce-shelf__add:hover:not(:disabled) {
  background: var(--commerce-yellow);
  color: #1f2937;
  transform: scale(1.08);
}

.commerce-shelf__add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Legacy mini-column hooks kept for reveal observer */
.commerce-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.commerce-mini-column h2 {
  font-size: 1.05rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  margin-bottom: 0.75rem;
}

.commerce-mini-column h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--commerce-yellow);
}

.commerce-mini-column article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 86px;
}

.commerce-mini-column img {
  width: 64px;
  height: 60px;
  object-fit: contain;
  background: transparent;
}

.commerce-mini-column article a {
  color: var(--commerce-blue);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.commerce-mini-column article p {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
}

.commerce-mini-column article strong {
  color: var(--commerce-red);
}

.commerce-mini-column article del {
  color: #8b95a3;
  margin-left: 0.3rem;
}

/* Light footer and drawer on commerce homepage */
.commerce-home .site-footer {
  background: #f7f8f9 !important;
  border-color: #e5e7eb !important;
  color: #374151;
  margin-top: 0 !important;
}

.commerce-home .site-footer .text-ep-text,
.commerce-home .site-footer .text-ep-muted,
.commerce-home .site-footer .text-ep-mute {
  color: #64748b !important;
}

.commerce-home .site-footer .text-ep-emerald,
.commerce-home .site-footer .text-ep-bright,
.commerce-home .site-footer .text-ep-dim {
  color: #9b7500 !important;
}

.commerce-home .site-footer .border-ep-border {
  border-color: #e5e7eb !important;
}

.commerce-footer {
  border-top: 1px solid #e5e7eb;
  background: #f7f8f9;
  color: #475569;
}

.commerce-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.commerce-footer__brand strong {
  display: block;
  color: #252d38;
  font: 800 1.15rem Orbitron, sans-serif;
}

.commerce-footer__brand small {
  display: block;
  color: #a17a00;
  font: 600 0.58rem "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
}

.commerce-footer__brand > p {
  max-width: 330px;
  margin: 1rem 0;
  color: #718096;
  font-size: 0.82rem;
  line-height: 1.6;
}

.commerce-footer__support {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.commerce-footer__support > span {
  color: #d1aa00;
  font-size: 1.7rem;
}

.commerce-footer__support p {
  margin: 0;
}

.commerce-footer__support small,
.commerce-footer__support strong {
  display: block;
}

.commerce-footer__support strong {
  color: #374151;
}

.commerce-footer h4 {
  margin: 0 0 1rem;
  color: #303844;
  font-size: 0.82rem;
}

.commerce-footer h4::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--commerce-yellow);
}

.commerce-footer__grid > div:not(:first-child) > a {
  display: block;
  padding: 0.3rem 0;
  color: #667085;
  font-size: 0.77rem;
  text-decoration: none;
}

.commerce-footer__grid > div:not(:first-child) > a:hover {
  color: #9b7500;
}

.commerce-footer__hours {
  margin-top: 1rem;
  color: #8a94a3;
  font-size: 0.72rem;
  line-height: 1.6;
}

.commerce-footer__hours strong {
  color: #475569;
}

.commerce-footer__bottom {
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.commerce-footer__bottom .commerce-container {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #8a94a3;
  font-size: 0.68rem;
}

.commerce-footer__bottom p {
  margin: 0;
}

.commerce-home .cart-drawer {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #1f2937;
  border-color: #e5e7eb !important;
}

.commerce-home .cart-drawer .text-ep-text,
.commerce-home .cart-drawer .text-ep-muted,
.commerce-home .cart-drawer .text-ep-mute {
  color: #64748b !important;
}

.commerce-home .cart-drawer .text-ep-neon,
.commerce-home .cart-drawer .text-ep-emerald {
  color: #a77900 !important;
}

.commerce-home .cart-drawer .border-ep-border {
  border-color: #e5e7eb !important;
}

.commerce-home .cart-drawer .form-input {
  background: #fff !important;
  color: #374151 !important;
  border-color: #dfe3e8 !important;
}

@media (max-width: 1023px) {
  .commerce-searchbar__inner {
    grid-template-columns: 180px minmax(0, 1fr) auto;
  }

  .commerce-hero__copy {
    width: 72%;
  }

  .commerce-departments {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commerce-products-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commerce-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .commerce-utility {
    display: none;
  }

  .commerce-header .nav-primary {
    top: 5.1rem;
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
  }

  .commerce-header .nav-primary a,
  .commerce-header .nav-dropdown__toggle {
    color: #374151 !important;
  }

  .commerce-searchbar__inner {
    width: min(100% - 24px, 1200px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding-block: 0.4rem;
  }

  .commerce-category-toggle {
    display: none;
  }

  .commerce-search {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .commerce-search select {
    display: none;
  }

  .commerce-cart strong {
    display: none;
  }

  .commerce-market-grid {
    grid-template-columns: 1fr;
  }

  .commerce-sidebar {
    display: none;
  }

  .commerce-hero {
    min-height: 480px;
  }

  .commerce-hero__copy {
    width: 100%;
    padding: 2.5rem 1.5rem 6rem;
  }

  .commerce-hero__copy > p {
    max-width: 85%;
  }

  .commerce-hero__product {
    opacity: 0.45;
  }

  .commerce-hero__stats span {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .commerce-content-grid {
    grid-template-columns: 1fr;
  }

  .commerce-product--deal {
    flex-basis: 86%;
    grid-template-columns: 42% 58%;
  }

  .commerce-departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-heading--tabs {
    display: block;
  }

  .commerce-tabs {
    padding: 0.6rem 0;
  }

  .commerce-products-row,
  .commerce-products-row--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-callback {
    border: 1px solid #e5e7eb;
    padding: 1rem;
  }

  .commerce-footer__bottom .commerce-container {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 0.75rem;
  }
}

@media (max-width: 520px) {
  .commerce-container {
    width: min(100% - 24px, 1200px);
  }

  .commerce-hero h1 {
    font-size: 2rem;
  }

  .commerce-btn--ghost {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .commerce-product--deal {
    flex-basis: 94%;
    grid-template-columns: 1fr;
  }

  .commerce-product--deal .commerce-product__media {
    aspect-ratio: 1.6;
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #f1e7b8;
  }

  .commerce-quick,
  .commerce-detail {
    opacity: 0.92;
    transform: none;
  }

  .commerce-departments,
  .commerce-products-row,
  .commerce-products-row--four,
  .commerce-service-strip,
  .commerce-shelves,
  .commerce-columns {
    grid-template-columns: 1fr;
  }

  .commerce-shelf__row {
    grid-template-columns: 30px 64px minmax(0, 1fr) 34px;
    gap: 0.5rem;
  }

  .commerce-shelf__media {
    width: 64px;
    height: 58px;
  }

  .commerce-footer__grid {
    grid-template-columns: 1fr;
  }

}

/* Commerce motion system */
@keyframes commerce-header-in {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes commerce-copy-in {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes commerce-product-float-a {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}

@keyframes commerce-product-float-b {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(10px); }
}

@keyframes commerce-product-float-c {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-9px); }
}

@keyframes commerce-kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 213, 0, 0); }
  50% { box-shadow: 0 0 24px rgba(255, 213, 0, 0.5); }
}

@keyframes commerce-shine {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(330%) skewX(-18deg); }
}

@keyframes commerce-stat-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.commerce-home .commerce-utility {
  animation: commerce-header-in 0.5s ease both;
}

.commerce-home .commerce-header {
  animation: commerce-header-in 0.55s 0.06s ease both;
}

.commerce-home .commerce-searchbar {
  animation: commerce-header-in 0.55s 0.12s ease both;
}

.commerce-hero__bg {
  --hero-x: 0px;
  --hero-y: 0px;
  transform: translate(var(--hero-x), var(--hero-y)) scale(1.035);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.commerce-hero__copy {
  animation: commerce-copy-in 0.85s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.commerce-kicker {
  animation: commerce-kicker-pulse 2.8s 1s ease-in-out infinite;
}

.commerce-hero__product--1 {
  animation: commerce-product-float-a 5.4s ease-in-out infinite;
}

.commerce-hero__product--2 {
  animation: commerce-product-float-b 6.2s 0.45s ease-in-out infinite;
}

.commerce-hero__product--3 {
  animation: commerce-product-float-c 4.8s 0.8s ease-in-out infinite;
}

.commerce-hero__stats span {
  animation: commerce-stat-in 0.55s ease both;
}

.commerce-hero__stats span:nth-child(1) { animation-delay: 0.65s; }
.commerce-hero__stats span:nth-child(2) { animation-delay: 0.78s; }
.commerce-hero__stats span:nth-child(3) { animation-delay: 0.91s; }

.commerce-btn--primary {
  position: relative;
  overflow: hidden;
}

.commerce-btn--primary::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 24%;
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-130%) skewX(-18deg);
  animation: commerce-shine 4.5s 1.5s ease-in-out infinite;
  pointer-events: none;
}

.commerce-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--reveal-delay, 0ms) ease,
    transform 0.65s var(--reveal-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.commerce-reveal.commerce-visible {
  opacity: 1;
  transform: translateY(0);
}

.commerce-departments a span,
.commerce-departments a:hover span {
  transform: translateY(-5px) scale(1.1) rotate(-3deg);
}

.commerce-shelf {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.commerce-shelf:hover {
  transform: translateY(-3px);
  border-color: #e4c326;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.commerce-mini-column article {
  transition: transform 0.22s ease, background 0.22s ease;
}

.commerce-mini-column article:hover {
  transform: translateX(4px);
  background: #fffbed;
}

@media (prefers-reduced-motion: reduce) {
  .commerce-home *,
  .commerce-home *::before,
  .commerce-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .commerce-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Auto-scrolling hero poster carousel */
.commerce-hero__track {
  position: absolute;
  inset: 0 0 48px;
  overflow: hidden;
}

.commerce-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(5%) scale(1.015);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.7s;
}

.commerce-hero__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.commerce-hero__slide .commerce-hero__copy {
  animation: none;
}

.commerce-hero__slide.is-active .commerce-hero__copy {
  animation: commerce-copy-in 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.commerce-hero__slide--amber .commerce-hero__overlay {
  background:
    linear-gradient(90deg, rgba(255, 252, 240, 0.99) 0%, rgba(255, 248, 222, 0.93) 43%, rgba(255, 245, 205, 0.12) 78%),
    linear-gradient(0deg, rgba(255, 168, 0, 0.14), transparent 58%);
}

.commerce-hero__slide--amber .commerce-hero__bg {
  filter: sepia(0.08) saturate(1.08) hue-rotate(350deg);
}

.commerce-hero__slide--blue .commerce-hero__overlay {
  background:
    linear-gradient(90deg, rgba(245, 253, 255, 0.99) 0%, rgba(231, 249, 253, 0.93) 43%, rgba(220, 247, 252, 0.1) 78%),
    linear-gradient(0deg, rgba(34, 211, 238, 0.1), transparent 58%);
}

.commerce-hero__slide--blue .commerce-hero__bg {
  filter: saturate(1.04) hue-rotate(10deg);
}

.commerce-hero__slide--blue h1 strong {
  color: #0798b2;
}

.commerce-hero__slide--blue .commerce-kicker {
  background: #baf3fb;
  color: #075d6d;
}

.commerce-hero__arrow {
  position: absolute;
  z-index: 8;
  /* Center within poster track (excludes bottom stats strip) */
  top: calc((100% - 48px) / 2);
  transform: translateY(-50%);
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
}

.commerce-hero__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.commerce-hero:hover .commerce-hero__arrow,
.commerce-hero__arrow:focus-visible {
  opacity: 1;
}

.commerce-hero__arrow:hover {
  color: #2f3743;
  background: var(--commerce-yellow);
  border-color: var(--commerce-yellow);
  transform: translateY(-50%) scale(1.07);
}

.commerce-hero__arrow--prev { left: 1rem; }
.commerce-hero__arrow--next { right: 1rem; }

.commerce-hero__dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.commerce-hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.commerce-hero__dots button.is-active {
  width: 28px;
  background: var(--commerce-yellow);
}

.commerce-hero__progress {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.commerce-hero__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--commerce-yellow);
}

.commerce-hero.is-playing .commerce-hero__progress span {
  animation: commerce-poster-progress 5.2s linear forwards;
}

@keyframes commerce-poster-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 767px) {
  .commerce-hero__arrow {
    opacity: 0.8;
  }

  .commerce-hero__dots {
    bottom: 62px;
  }
}

/* Product detail reviews */
.pd-reviews__shell {
  border: 1px solid #ece7d2;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 213, 0, 0.1) 0%, #fff 28%, #fcfcfd 100%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.pd-reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid #f0ebda;
}

.pd-reviews__eyebrow {
  display: block;
  color: #b08700;
  font: 700 0.62rem Outfit, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.pd-reviews__header h2 {
  margin: 0;
  font: 700 1.35rem Outfit, sans-serif;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.pd-reviews__header p {
  margin: 0.3rem 0 0;
  color: #7b8797;
  font-size: 0.84rem;
}

.pd-reviews__write-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 700 0.78rem Outfit, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(210, 170, 0, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-reviews__write-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(210, 170, 0, 0.26);
}

.pd-reviews__summary {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid #f0ebda;
  background: rgba(255, 255, 255, 0.55);
}

.pd-reviews__score {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 0.25rem;
}

.pd-reviews__score strong {
  font: 800 2.6rem/1 Outfit, sans-serif;
  color: #0f172a;
  letter-spacing: -0.04em;
}

.pd-reviews__score-stars {
  color: #f4c400;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.pd-reviews__score > span {
  color: #7b8797;
  font-size: 0.74rem;
}

.pd-reviews__bars {
  display: grid;
  gap: 0.35rem;
}

.pd-reviews__bar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.28rem 0.4rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font: 600 0.72rem Outfit, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pd-reviews__bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #eef1f4;
  overflow: hidden;
}

.pd-reviews__bar i b {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd500, #f59e0b);
  transition: width 0.45s ease;
}

.pd-reviews__bar em {
  font-style: normal;
  text-align: right;
  color: #94a3b8;
}

.pd-reviews__bar:hover,
.pd-reviews__bar.is-active {
  background: #fff8d6;
  color: #735a00;
}

.pd-reviews__bar--all {
  grid-template-columns: 1fr;
  justify-items: start;
  margin-top: 0.2rem;
  color: #8a6a00;
}

.pd-reviews__composer {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid #f0ebda;
  background: #fffef8;
  animation: pd-review-in 0.3s ease;
}

@keyframes pd-review-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pd-review-form__stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-bottom: 1rem;
}

.pd-review-form__label {
  font: 700 0.72rem Outfit, sans-serif;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-star-picker {
  display: inline-flex;
  gap: 0.15rem;
}

.pd-star-picker button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d5d9e0;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.pd-star-picker button.is-on,
.pd-star-picker button.is-hover {
  color: #f4c400;
}

.pd-star-picker button:hover {
  transform: scale(1.12);
}

.pd-review-form__stars small {
  color: #8a6a00;
  font: 600 0.78rem Outfit, sans-serif;
}

.pd-review-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pd-review-form__grid label {
  display: grid;
  gap: 0.35rem;
}

.pd-review-form__grid span {
  color: #475569;
  font: 700 0.7rem Outfit, sans-serif;
}

.pd-review-form__grid span em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}

.pd-review-form__grid input,
.pd-review-form__grid textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  padding: 0.7rem 0.85rem;
  font: 500 0.88rem Outfit, sans-serif;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-review-form__grid textarea {
  resize: vertical;
  min-height: 110px;
}

.pd-review-form__grid input:focus,
.pd-review-form__grid textarea:focus {
  border-color: #d7b500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.18);
}

.pd-review-form__full {
  grid-column: 1 / -1;
}

.pd-review-form__full small {
  color: #94a3b8;
  font-size: 0.68rem;
  justify-self: end;
}

.pd-review-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pd-review-form__submit {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 700 0.82rem Outfit, sans-serif;
  cursor: pointer;
}

.pd-review-form__cancel {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font: 600 0.8rem Outfit, sans-serif;
  cursor: pointer;
}

.pd-review-form__status {
  color: #94a3b8;
  font-size: 0.72rem;
}

.pd-review-form__status.is-ok { color: #059669; }
.pd-review-form__status.is-err { color: #e11d48; }

.pd-reviews__list {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.4rem 1.4rem;
}

.pd-reviews__empty {
  text-align: center;
  padding: 2rem 1rem;
}

.pd-reviews__empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4b8;
  color: #b45309;
  font-size: 1.4rem;
}

.pd-reviews__empty h3 {
  margin: 0;
  font: 700 1.05rem Outfit, sans-serif;
  color: #1f2937;
}

.pd-reviews__empty p {
  margin: 0.45rem auto 1rem;
  max-width: 34ch;
  color: #7b8797;
  font-size: 0.86rem;
}

.pd-review-card {
  border: 1px solid #eceff3;
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.05rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pd-review-card:hover {
  border-color: #e4c326;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.pd-review-card__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.pd-review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 800 0.95rem Outfit, sans-serif;
}

.pd-review-card__who {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.pd-review-card__who strong {
  color: #1f2937;
  font-size: 0.9rem;
}

.pd-review-card__who time {
  color: #94a3b8;
  font-size: 0.68rem;
}

.pd-review-card__stars {
  color: #f4c400;
  letter-spacing: -0.04em;
  font-size: 0.9rem;
}

.pd-review-card h3 {
  margin: 0 0 0.35rem;
  color: #1f2937;
  font: 700 0.95rem Outfit, sans-serif;
}

.pd-review-card > p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pd-review-card__reply {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid #ffd500;
  border-radius: 0 12px 12px 0;
  background: #fffbeb;
}

.pd-review-card__reply span {
  display: block;
  color: #8a6a00;
  font: 700 0.68rem Outfit, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.pd-review-card__reply p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
}

.pd-reviews__filter-empty {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.84rem;
  padding: 0.5rem 0 0.2rem;
}

@media (max-width: 720px) {
  .pd-reviews__header {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-reviews__summary {
    grid-template-columns: 1fr;
  }

  .pd-review-form__grid {
    grid-template-columns: 1fr;
  }

  .pd-review-card__head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .pd-review-card__stars {
    grid-column: 2;
  }
}

/* Catalog page */
.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;
}

.catalog-page {
  padding-bottom: 3rem;
}

.catalog-hero {
  border-bottom: 1px solid #ece7d2;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 213, 0, 0.22), transparent 34%),
    linear-gradient(135deg, #fffef6 0%, #ffffff 55%, #f8fafc 100%);
}

.catalog-hero__inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 1.8rem 0 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.catalog-hero__copy span {
  display: inline-block;
  color: #b08700;
  font: 700 0.66rem Outfit, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.catalog-hero__copy h1 {
  margin: 0;
  color: #1f2937;
  font: 750 clamp(1.6rem, 3vw, 2.35rem)/1.15 Outfit, sans-serif;
  letter-spacing: -0.03em;
}

.catalog-hero__copy p {
  margin: 0.45rem 0 0;
  max-width: 52ch;
  color: #7b8797;
  font-size: 0.95rem;
}

.catalog-hero__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  max-width: 640px;
}

.catalog-hero__search input {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0.7rem 1rem;
  font: 500 0.92rem Outfit, sans-serif;
  outline: 0;
}

.catalog-hero__search input:focus {
  border-color: #d7b500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.18);
}

.catalog-hero__search button {
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 14px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 700 0.86rem Outfit, sans-serif;
  cursor: pointer;
}

.catalog-layout {
  width: min(100% - 40px, 1200px);
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: calc(72px + 0.85rem);
  border: 1px solid #ece7d2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.catalog-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #f0ebda;
  background: linear-gradient(180deg, #fffef6, #fff);
}

.catalog-filters__head h2 {
  margin: 0;
  font: 700 0.95rem Outfit, sans-serif;
  color: #1f2937;
}

.catalog-filters__head a {
  color: #8a6a00;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

.catalog-filters__form {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 1.05rem;
}

.catalog-filters__group {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-filters__group h3 {
  padding: 0;
  margin: 0 0 0.45rem;
  color: #b08700;
  font: 700 0.64rem Outfit, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.catalog-check i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d6dbe3;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.catalog-check.is-active i {
  border-color: #e6bd00;
  background: #ffd500;
  box-shadow: inset 0 0 0 3px #fff;
}

.catalog-check:hover {
  background: #fff8d6;
  color: #5b4a00;
  border-color: #ead573;
}

.catalog-check.is-active {
  background: #fff8d6;
  color: #5b4a00;
  border-color: #e0c11a;
}

.catalog-check.is-pressed,
.catalog-preset.is-pressed,
.catalog-chips a.is-pressed,
.catalog-apply.is-pressed {
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.12);
}

.catalog-filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.catalog-filters legend {
  padding: 0;
  margin-bottom: 0.45rem;
  color: #b08700;
  font: 700 0.64rem Outfit, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.catalog-preset {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ead573;
  background: #fff;
  color: #735a00;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font: 600 0.68rem Outfit, sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.catalog-preset.is-active,
.catalog-preset:hover {
  background: #ffd500;
  border-color: #e0c11a;
  color: #1f2937;
}

.catalog-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.catalog-price-inputs label {
  display: grid;
  gap: 0.25rem;
}

.catalog-price-inputs span {
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-price-inputs input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: 500 0.82rem Outfit, sans-serif;
  outline: 0;
}

.catalog-price-inputs input:focus {
  border-color: #d7b500;
  box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.16);
}

.catalog-filters__actions {
  display: grid;
  gap: 0.45rem;
}

.catalog-apply {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 700 0.82rem Outfit, sans-serif;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}

.catalog-apply:hover {
  box-shadow: 0 8px 16px rgba(210, 170, 0, 0.22);
}

.catalog-apply:active,
.catalog-apply.is-pressed {
  transform: scale(0.97);
}

.catalog-reset {
  text-align: center;
  color: #8a6a00;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.catalog-toolbar strong {
  display: block;
  color: #1f2937;
  font: 700 1.05rem Outfit, sans-serif;
}

.catalog-toolbar span {
  color: #94a3b8;
  font-size: 0.74rem;
}

.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
}

.catalog-sort select {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem 0.65rem;
  font: 600 0.78rem Outfit, sans-serif;
  color: #1f2937;
}

.catalog-active {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.catalog-active a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #fff8d6;
  border: 1px solid #ead573;
  color: #735a00;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.catalog-chips a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font: 600 0.74rem Outfit, sans-serif;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.catalog-chips a:hover,
.catalog-chips a.is-active {
  background: #ffd500;
  border-color: #e0c11a;
  color: #1f2937;
}

.catalog-chips a:active,
.catalog-chips a.is-pressed {
  transform: scale(0.96);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed #ead573;
  border-radius: 18px;
  background: #fffef6;
}

.catalog-empty strong {
  display: block;
  color: #1f2937;
  font: 700 1.05rem Outfit, sans-serif;
}

.catalog-empty p {
  margin: 0.4rem 0 1rem;
  color: #7b8797;
}

.catalog-empty a {
  color: #8a6a00;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
  }
}

@media (max-width: 640px) {
  .catalog-hero__inner,
  .catalog-layout {
    width: min(100% - 24px, 1200px);
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero__search {
    grid-template-columns: 1fr;
  }
}

/* Shared lab / module pages */
.lab-page { padding-bottom: 3rem; }

.lab-hero {
  border-bottom: 1px solid #ece7d2;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 213, 0, 0.2), transparent 32%),
    linear-gradient(135deg, #fffef6 0%, #fff 52%, #f8fafc 100%);
}

.lab-hero__inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  padding: 1.7rem 0 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.lab-hero__copy span {
  display: inline-block;
  color: #b08700;
  font: 700 0.66rem Outfit, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.lab-hero__copy h1 {
  margin: 0;
  color: #1f2937;
  font: 750 clamp(1.55rem, 3vw, 2.25rem)/1.15 Outfit, sans-serif;
  letter-spacing: -0.03em;
}

.lab-hero__copy p {
  margin: 0.4rem 0 0;
  max-width: 54ch;
  color: #7b8797;
  font-size: 0.94rem;
}

.lab-body {
  width: min(100% - 40px, 1200px);
  margin: 1.35rem auto 0;
}

.lab-panel {
  border: 1px solid #ece7d2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.lab-panel--pad { padding: 1.1rem 1.15rem; }

.lab-side {
  border: 1px solid #ece7d2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffef6, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  padding: 1.05rem 1.1rem;
}

.lab-side h2,
.lab-side h3 {
  margin: 0 0 0.75rem;
  color: #b08700;
  font: 700 0.66rem Outfit, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}

.lab-grid-2-rev {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.lab-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.lab-grid-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-grid-cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-card {
  border: 1px solid #e7ebf0;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lab-card:hover {
  transform: translateY(-4px);
  border-color: #e2c322;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.lab-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 213, 0, 0.16), transparent 40%),
    #f8fafc;
  overflow: hidden;
}

.lab-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  background: transparent;
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.12));
}

.lab-card__body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.lab-card__body h2,
.lab-card__body h3 {
  margin: 0;
  color: #1f2937;
  font: 700 1rem/1.3 Outfit, sans-serif;
}

.lab-card__body p { margin: 0; color: #7b8797; font-size: 0.84rem; }

.lab-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fff8d6;
  border: 1px solid #ead573;
  color: #735a00;
  font: 700 0.62rem Outfit, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lab-badge--dark {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffd500;
}

.lab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #e0c11a;
  background: linear-gradient(180deg, #ffe566, #ffd500);
  color: #1f2937;
  font: 700 0.8rem Outfit, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lab-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(210, 170, 0, 0.24); }
.lab-btn:active,
.lab-btn.is-pressed { transform: translateY(0) scale(0.96); box-shadow: inset 0 2px 6px rgba(120, 90, 0, 0.18); }
.lab-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.lab-btn--ghost {
  background: #fff;
  border-color: #e5e7eb;
  color: #64748b;
  box-shadow: none;
}

.lab-btn--ghost:hover {
  border-color: #ead573;
  color: #735a00;
  background: #fff8d6;
  box-shadow: none;
}

.lab-btn--block { width: 100%; }

.lab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.lab-chips a,
.lab-chips button {
  appearance: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #64748b;
  font: 600 0.74rem Outfit, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.lab-chips a.is-active,
.lab-chips a:hover,
.lab-chips button.is-active,
.lab-chips button:hover,
.chip-active {
  background: #ffd500 !important;
  border-color: #e0c11a !important;
  color: #1f2937 !important;
}

.lab-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e7ebf0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lab-check:hover,
.lab-check:has(:checked) {
  border-color: #e0c11a;
  background: #fff8d6;
}

.lab-check input { accent-color: #e6bd00; }

.config-step {
  flex: 1;
  min-width: 120px;
  padding: 0.85rem 0.7rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #94a3b8;
  font: 700 0.68rem Outfit, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.config-step span {
  display: block;
  font: 750 1.15rem Outfit, sans-serif;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
  text-transform: none;
}

.config-step.is-active {
  border-color: #e0c11a;
  background: #fff8d6;
  color: #735a00;
  box-shadow: 0 8px 18px rgba(210, 170, 0, 0.16);
}

.config-step.is-done {
  border-color: #d6dbe3;
  color: #64748b;
  background: #f8fafc;
}

.cfg-option {
  text-align: left;
  padding: 1rem;
  border: 1px solid #e7ebf0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cfg-option:hover { border-color: #ead573; }
.cfg-option.is-selected {
  border-color: #e0c11a;
  background: #fff8d6;
  box-shadow: 0 10px 20px rgba(210, 170, 0, 0.14);
}

.cfg-option h4 {
  margin: 0 0 0.25rem;
  color: #1f2937;
  font: 700 0.95rem Outfit, sans-serif;
}

.cfg-option .meta { color: #94a3b8; font: 500 0.72rem/1.35 "JetBrains Mono", monospace; }
.cfg-option .price-line { margin-top: 0.55rem; color: #0f172a; font: 800 0.95rem Outfit, sans-serif; }

.ai-bubble {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid #ece7d2;
  background: #fff;
}

.ai-bubble--bot {
  background: linear-gradient(180deg, #fffef6, #fff);
}

.ai-bubble--user {
  margin-left: auto;
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.ai-bubble--user .font-mono { color: #ffd500 !important; }

@media (max-width: 1024px) {
  .lab-grid-2,
  .lab-grid-2-rev { grid-template-columns: 1fr; }
  .lab-grid-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .lab-hero__inner,
  .lab-body { width: min(100% - 24px, 1200px); }
  .lab-grid-cards,
  .lab-grid-cards--2,
  .lab-grid-cards--4 { grid-template-columns: 1fr; }
}
