/* TopTools.kz Typography Unified v2.0 — standalone Manrope + Inter.
   Disable OCMOD to restore the original theme typography. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/tt-inter-latin-v2.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/tt-inter-cyrillic-v2.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/tt-inter-cyrillic-ext-v2.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/tt-manrope-latin-v2.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/tt-manrope-cyrillic-v2.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/tt-manrope-cyrillic-ext-v2.woff2") format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

:root {
  --tt-font-main: "Inter", Arial, Helvetica, sans-serif;
  --tt-font-heading: "Manrope", "Inter", Arial, sans-serif;
}

/* Manrope has partial Kazakh coverage; a whole Kazakh page uses Inter headings. */
html[lang^="kk"] { --tt-font-heading: "Inter", Arial, Helvetica, sans-serif; }

html, body, button, input, select, textarea,
.toptools-main-header, .toptools-servicebar,
.dropdown-menu, .tooltip, .popover, .breadcrumb, .form-control,
footer, .tt-footer, #tt-ai-panel, #tt-ai-launcher, .tt-cookie-consent {
  font-family: var(--tt-font-main) !important;
}

/* Preserve legacy OpenCart icon glyphs. */
.fa, .fa::before, .fa::after { font-family: FontAwesome !important; }
.glyphicon, .glyphicon::before { font-family: "Glyphicons Halflings" !important; }

/* Headings, section titles and rubrics. */
h1, h2, h3, h4, h5, h6,
.toptools-section-title, .tt-section-title, .tt-section-head h2,
.tt-category-intro h1, .tt-category-intro h2,
footer .title, .tt-footer .title {
  font-family: var(--tt-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
}
footer .title, .tt-footer .title { font-size: 15px; letter-spacing: -0.01em; }
.tt-category-kicker, .tt-about-eyebrow, .tt-catalog-kicker,
.ttv-business-eyebrow, .ttv-help > div > span {
  font-family: var(--tt-font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em;
}

body.common-home h1 { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.13; font-weight: 800 !important; }
body.common-home h2 { font-size: clamp(21px, 2vw, 25px); line-height: 1.23; }
body.product-category h1 { font-size: clamp(26px, 2.25vw, 32px) !important; line-height: 1.18 !important; }
body.product-category h2 { font-size: clamp(21px, 1.8vw, 25px) !important; }
body.product-product h1 { font-size: clamp(26px, 2.1vw, 32px) !important; line-height: 1.2; }
body.information-sitemap h1 { font-size: clamp(30px, 3.2vw, 42px) !important; }
body.information-information h1 { font-size: clamp(29px, 2.8vw, 38px) !important; }

/* Technical model names are Inter SemiBold, not display headings. */
.product-thumb h4, .product-thumb h4 a,
.tt-product-row-title, .tt-product-row-title a,
.ttv-product-card h3, .ttv-product-card h3 a,
.tt-product-title, .product-list .caption h4 {
  font-family: var(--tt-font-main) !important;
  font-weight: 600 !important;
  letter-spacing: -0.008em;
}
body.product-category .tt-product-row-title { font-size: 16px !important; line-height: 1.35 !important; }
body.common-home .ttv-product-card h3 { font-size: 15px !important; line-height: 1.4 !important; }

.product-thumb .price, .product-thumb .price-new, .product-thumb .price-old,
.tt-product-row-price, .tt-price-current, .price-new, .price-old {
  font-family: var(--tt-font-main) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
body.product-category .tt-product-row-price { font-size: 19px !important; }
.tt-filter-v3__group-toggle, .tt-product-row-cart, .tt-product-row-quick-order,
.ttv-product-card button, .ttv-product-card .btn, .btn, .form-control, .tt-ai-input {
  font-family: var(--tt-font-main) !important;
}
.tt-filter-v3__group-toggle { font-size: 14px !important; font-weight: 600 !important; }
.tt-product-row-cart, .tt-product-row-quick-order { font-size: 14px !important; font-weight: 600 !important; }

.tt-about-lead, .tt-category-intro, .tt-seo-content,
.tt-seo-description, .product-description, .tt-about-card p {
  font-family: var(--tt-font-main) !important;
  line-height: 1.55;
}

/* Consolidated mobile cascade: all overrides follow the desktop rules. */
@media (max-width: 767px) {
  body.common-home h1 { font-size: clamp(28px, 7vw, 32px) !important; }
  body.product-category h1 { font-size: clamp(25px, 6.2vw, 28px) !important; }
  body.product-category .tt-product-row-title { font-size: 15px !important; }
  body.product-category .tt-product-row-price { font-size: 18px !important; }
  body.product-product h1 {
    font-size: clamp(22px, 6vw, 27px) !important;
    line-height: 1.22 !important;
  }
  body.information-information h1 {
    font-size: clamp(25px, 6.5vw, 30px) !important;
    line-height: 1.19 !important;
  }
  body.information-sitemap h1 {
    font-size: clamp(26px, 6.8vw, 32px) !important;
    line-height: 1.18 !important;
  }
  body.common-home .ttv-hero-retail h1 {
    font-size: clamp(28px, 7.2vw, 34px) !important;
    line-height: 1.16 !important;
  }
  body.common-home .ttv-hero-business h2 {
    font-size: clamp(26px, 6.8vw, 32px) !important;
    line-height: 1.18 !important;
  }
  .tt-product-row-title, .tt-product-row-title a,
  .ttv-product-card h3, .ttv-product-card h3 a {
    overflow-wrap: break-word;
  }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    font-size: max(16px, 1em);
  }
}

@media (max-width: 479px) {
  footer .title, .tt-footer .title { font-size: 14px !important; }
  .ttv-section-heading h2 { font-size: 21px !important; line-height: 1.25 !important; }
}
