/* shared/ui.css — Altiora shared UI primitives v92 */
:root {
  --altiora-radius-xs: 4px;
  --altiora-radius-sm: 8px;
  --altiora-radius-md: 12px;
  --altiora-radius-lg: 16px;
  --altiora-touch: 44px;
}

.altiora-action,
.altiora-link-action {
  min-height: 38px;
  border-radius: var(--altiora-radius-sm);
  border: 1px solid rgba(76,128,255,.42);
  background: rgba(47,128,255,.08);
  color: #9fc2ff;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .052em;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 650;
  box-sizing: border-box;
}

html[data-theme="light"] .altiora-action,
html[data-theme="light"] .altiora-link-action {
  color: #174f99;
  background: rgba(47,128,255,.07);
  border-color: rgba(47,128,255,.22);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,.10));
  background: rgba(255,255,255,.045);
  color: var(--text, #f5f8ff);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .mobile-menu-btn {
  background: rgba(255,255,255,.68);
  color: #173457;
  border-color: rgba(47,128,255,.22);
}


/* v58 — real theme logo */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 148px;
  height: 42px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-light {
  display: none;
}

html[data-theme="light"] .brand-logo-dark {
  display: none;
}

html[data-theme="light"] .brand-logo-light {
  display: block;
}

@media (max-width: 767px) {
  .brand-logo-link {
    width: 124px;
    height: 34px;
  }
}

@media (max-width: 479px) {
  .brand-logo-link {
    width: 112px;
    height: 31px;
  }
}


/* v60 — shared entity components */
.altiora-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.altiora-chip {
  border: 1px solid var(--line, rgba(255,255,255,.10));
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  color: var(--muted, rgba(240,244,255,.70));
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1;
}

html[data-theme="light"] .altiora-chip {
  background: rgba(47,128,255,.06);
  border-color: rgba(47,128,255,.12);
  color: rgba(12,23,40,.66);
}


/* v77 — expanded about company text */
.altiora-about-text-full {
  display: grid;
  gap: 14px;
}

.altiora-about-text-full p {
  margin: 0;
  line-height: 1.65;
}


/* v88 — shared header phone and about contacts */
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line, rgba(255,255,255,.10));
  border-radius: 999px;
  color: var(--text, #fff);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,.045);
}

.header-phone:hover {
  border-color: var(--line-2, rgba(112,149,210,.24));
  background: rgba(255,255,255,.07);
}

.altiora-about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(255,255,255,.10));
}

.altiora-about-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line, rgba(255,255,255,.10));
  border-radius: 999px;
  color: var(--text, #fff);
  text-decoration: none;
  background: rgba(255,255,255,.045);
  font-size: 13px;
  white-space: nowrap;
}

html[data-theme="light"] .header-phone,
html[data-theme="light"] .altiora-about-contacts a {
  color: #0c1728;
  background: rgba(244,248,255,.78);
  border-color: rgba(25,48,82,.12);
}

@media (max-width: 767px) {
  .header-phone {
    display: none !important;
  }

  .altiora-about-contacts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .altiora-about-contacts a {
    justify-content: center;
  }
}


/* v92 — hero metric for reusable product cards */
.product-card-hero-metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: #f5f8ff;
}

.product-card-hero-metric strong {
  display: block;
  font-size: 20px;
  line-height: .98;
  font-weight: 780;
  letter-spacing: -.052em;
  white-space: nowrap;
}

.product-card-hero-metric span {
  display: block;
  color: currentColor;
  opacity: .76;
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-hero-catalog {
  margin-top: auto;
}

.product-card-hero-mobile {
  margin-top: -2px;
}

.product-hero-hube { color: #c15dff; }
.product-hero-amd { color: #ffffff; }
.product-hero-aiservices { color: #bff4e2; }
.product-hero-lite { color: var(--amber, #ffbd5a); }

html[data-theme="light"] .product-hero-amd {
  color: #0c1728;
}
