/* Conservative stability fixes. Keeps existing page designs unchanged. */

/* Header tabs and action icons */
.nova-nav__links {
  align-items: center;
}

.nova-nav__links .nova-nav__link {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.nova-nav__links .nova-nav__link.is-active,
.nova-nav__links .nova-nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(var(--nova-gold), .065);
  box-shadow: inset 0 0 0 1px rgba(var(--nova-gold), .13), 0 0 18px rgba(var(--nova-gold), .055);
}

.nova-nav__actions {
  flex: 0 0 auto;
  align-items: center;
}

.nova-nav__actions > * {
  flex: 0 0 auto;
}

.nova-currency,
.nova-icon-btn,
.nova-cart,
.nova-menu-btn {
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nova-icon-btn,
.nova-menu-btn {
  min-width: 2.75rem;
}

.nova-currency > i,
.nova-icon-btn > i,
.nova-cart > i {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.nova-currency select {
  min-height: 2.3rem;
  line-height: 1;
}

.nova-menu-btn span {
  pointer-events: none;
}

/* Product information tabs */
.nova-product-detail__tabs {
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--commerce-green), .24) transparent;
}

.nova-product-detail__tabs::-webkit-scrollbar {
  height: .28rem;
}

.nova-product-detail__tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--commerce-green), .24);
}

.nova-product-detail__tabs button {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  line-height: 1;
  white-space: nowrap;
}

.nova-product-detail__tabs button i {
  width: 1rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 1rem;
  line-height: 1;
}

.nova-product-detail__tabs button:focus-visible {
  outline: 2px solid rgba(var(--commerce-green), .58);
  outline-offset: 2px;
}

.nova-product-detail__tab-panel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nova-product-detail__tab-panel[style*="display: none"] {
  pointer-events: none;
}

@media (max-width: 860px) {
  .nova-currency,
  .nova-icon-btn,
  .nova-cart,
  .nova-menu-btn {
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    padding: 0 !important;
    border-radius: .75rem !important;
  }

  .nova-currency select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    opacity: 0;
    cursor: pointer;
  }

  .nova-cart span {
    display: none !important;
  }

  .nova-cart b {
    position: absolute;
    top: -.3rem;
    right: -.3rem;
  }
}

@media (max-width: 767px) {
  .nova-product-detail__tabs {
    gap: .4rem;
    padding: .78rem;
    scroll-snap-type: x proximity;
  }

  .nova-product-detail__tabs button {
    min-height: 2.35rem;
    padding: .55rem .72rem;
    scroll-snap-align: start;
  }
}
