/* Global font scale */
html {
    --theme-font-scale: 1;
}

html.theme-text-small {
    font-size: 87.5%;
    --theme-font-scale: 0.875;
}

html.theme-text-medium {
    font-size: 100%;
    --theme-font-scale: 1;
}

html.theme-text-large {
    font-size: 112.5%;
    --theme-font-scale: 1.125;
}

/* Product title */
html .race-product-page .product_tittle_name {
    font-size: calc(28px * var(--theme-font-scale));
}

/* Product tabs */
html .race-product-page .tab-btn {
    font-size: calc(15px * var(--theme-font-scale));
}

/* Active tab */
html .race-product-page .tab-btn.active {
    font-size: calc(16px * var(--theme-font-scale));
}

/* Product icons that use a fixed size */
html .race-product-page .description-icon {
    font-size: calc(32px * var(--theme-font-scale));
}

/* Product review labels */
html .race-product-page .btnrating {
    font-size: calc(18px * var(--theme-font-scale));
}

/* Product questions */
html .race-product-page .questions-card-preview .question-box .question,
html .race-product-page .questions-card-preview .answer-box .answer,
html .race-product-page .questions-card-init .content-box p {
    font-size: calc(16px * var(--theme-font-scale));
}

/* A visible default shadow is needed so that the merchant toggle has an effect. */
html:not(.theme-no-quantity-shadow) .quantity-wrapper {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

html.theme-no-quantity-shadow .quantity-wrapper {
  box-shadow: none !important;
}

/* Hide comparison trigger icon on product cards when comparison feature is disabled */
.theme-no-comparison
.reshare {
  display: none !important;
}
@media (min-width: 992px) {
  .theme-no-nav-highlight .race-header__nav-link::after {
    display: none !important;
  }

  .theme-no-nav-highlight
  .race-header__nav-item:is(:hover, :focus-within, .is-active)
  > .race-header__nav-link {
    color: inherit;
  }
}
/* Fixed-pixel headings / labels that cannot inherit the root rem scale. */
html .race-product-page .remaining-text-single,
html .race-product-page .low-quantity,
html .product-card .remaining-text {
  font-size: calc(14px * var(--theme-font-scale));
}

/* Layout-level stock switch: cards inside sections have section-local settings.
   No positive finite inventory = no badge; this controls visibility only. */
html:not(.theme-show-stock-count) .product-card .remaining-text {
  display: none !important;
}
