/**
 * Tipografie site — aliniată cu test.smart-residence.ro (Supermart Avanam).
 * Bază 14px desktop; breakpoints din responsive.css tema test.
 */
:root {
  --sr-type-scale: 1;
  /* Font butoane (non-small) — 14px ca test.smart-residence.ro (toate butoanele uniform). */
  --sr-btn-font: calc(14px * var(--sr-type-scale));
}

/* Ecrane mari — butoanele rămân 14px (fără bump), ca test. */
@media (min-width: 1500px) {
  :root {
    --sr-btn-font: calc(14px * var(--sr-type-scale));
  }
}

html {
  font-size: calc(14px * var(--sr-type-scale));
}

body {
  font-size: 1rem;
  line-height: 24px;
  letter-spacing: 0.3px;
  font-family: var(--global-body-font-family);
}

#content {
  font-size: 1rem;
  line-height: 1.55;
}

#content :is(p, li, dd, dt, label, .form-label, .form-control, .form-select, textarea, address):not(.small):not(.text-muted) {
  font-size: max(1rem, 1em);
}

/* Pagina de căutare — textul formularului (etichetă, cuvinte cheie, categorii, checkbox-uri) crește la 16px doar pe ecrane mari (>1500px); sub acest prag rămâne baza 14px. */
@media (min-width: 1500px) {
  #product-search #content .col-form-label,
  #product-search #content #input-search,
  #product-search #content #input-category,
  #product-search #content #input-category option,
  #product-search #content .form-check-label,
  /* Rezultat paginare („Afișare de la 1 la 8...") + mesajul „Nu există produse..." */
  #product-search #content #pagination-wrapper .page-result,
  #product-search #content > p {
  }
}

#content .btn:not(.btn-sm):not(.btn-xs) {
  font-size: max(var(--sr-btn-font), 1em);
}

#top,
#header,
#sr-sticky-header {
  font-size: calc(14px * var(--sr-type-scale));
}

#top a {
  font-size: calc(14px * var(--sr-type-scale));
}

.btn:not(.btn-sm):not(.btn-xs) {
  font-size: var(--sr-btn-font);
  line-height: 1.5;
}

/* Butoane mari uniformizate la 14px ca test (search „Căutare", „Abonare" newsletter, orice .btn-lg) */
.btn-lg:not(.btn-sm):not(.btn-xs),
#footer #base_newsletter .newsletter-form .subscribe-btn,
#footer #base_newsletter .newsletter-form .subscribe-btn span.btn-text {
  font-size: 14px !important;
}

/* Fără bold/light pe butoane — greutate uniformă 400 (toate butoanele). */
.btn,
.btn-lg,
.btn-primary,
.btn-outline-secondary,
.btn-default {
  font-weight: 400 !important;
}

#header .header_bottom ul.megamenu > li > a,
#header .header_bottom ul.megamenu > li > a strong,
#header .header_bottom #menu .navbar-nav > li > a,
#header .header_bottom #menu .navbar-nav .dropdown .dropdown-inner a,
#header .header_bottom #menu .navbar-nav .dropdown .see-all,
#header .header_bottom .sub-menu a,
#header .header_bottom .sub-menu .content a {
  font-size: calc(15px * var(--sr-type-scale)) !important;
  line-height: 1.45 !important;
}

/* Megameniu categorii — ierarhie titlu/link ca pe test (20260710megahier) */
#header .header_bottom .responsive.megamenu-style-dev .sr-category-menu-title {
  font-size: calc(16px * var(--sr-type-scale)) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
#header .header_bottom .responsive.megamenu-style-dev .sr-category-menu-links a,
#header .header_bottom .responsive.megamenu-style-dev .sr-category-menu-tree a,
#header .header_bottom .responsive.megamenu-style-dev .sr-category-menu-link-titled > a {
  font-size: calc(14px * var(--sr-type-scale)) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

@media (min-width: 1800px) {
  #header .header_bottom ul.megamenu > li > a,
  #header .header_bottom ul.megamenu > li > a strong,
  #header .header_bottom #menu .navbar-nav > li > a,
  #header .header_bottom #menu .navbar-nav .dropdown .dropdown-inner a,
  #header .header_bottom #menu .navbar-nav .dropdown .see-all,
  #header .header_bottom .sub-menu a,
  #header .header_bottom .sub-menu .content a {
    font-size: calc(15px * var(--sr-type-scale)) !important;
  }
}

.breadcrumb-container .breadcrumb > li.breadcrumb-item,
.breadcrumb-container .breadcrumb > li.breadcrumb-item > a {
  font-size: calc(14px * var(--sr-type-scale)) !important;
}

/* Breadcrumb — puțin mai mare pe ecrane late (>1500px) */
@media (min-width: 1500px) {
  .breadcrumb-container .breadcrumb > li.breadcrumb-item,
  .breadcrumb-container .breadcrumb > li.breadcrumb-item > a {
  }
}

/* Titluri secțiuni module — 30px desktop */
.title-wrapper h4,
.base_products .title-wrapper h4,
#base_category_tabs .title-wrapper h4,
#base_topdeal_product .title-wrapper h4,
#base_product_category .title-wrapper h4 {
  font-size: 24px !important;
  line-height: 1.35;
}

/* Categorii populare — același titlu secțiune */
#base_product_category .title-wrapper h4 {
  line-height: 1.4;
}

/* Carduri produs — nume 14px ca test.smart-residence.ro (măsurat) */
.product-thumb .description h4,
.product-thumb .description h4 a {
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

.price,
.product-thumb .description .price,
.product-thumb .description .price .price-new {
  font-size: 16px;
  font-weight: 410;
  line-height: 24px;
}

.price .price-old {
  font-size: 15px;
}

.price .price-tax {
  font-size: 14px;
}

footer h5 {
  font-size: 24px;
}

/* Tipografia #footer .footer_middle — exclusiv în sr-footer.css (variabile --sr-fm-*) */

/* —— Responsive: test.smart-residence.ro/responsive.css —— */
@media (max-width: 1200px) {
  .base_products .title-wrapper h4 {
    font-size: 18px;
  }

  .base_products .price,
  .price .price-old {
    font-size: 14px;
  }

  footer h5 {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  body.common-home {
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-width: 767px) {
  html body.common-home {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 540px) {
  #top a {
    font-size: 13px;
  }

  footer h5 {
    font-size: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  #base_product_category .title,
  #base_product_category h4.title,
  #base_product_category .title a {
    font-size: 22px !important;
  }
}

/* Limbă — text negru în meniul deschis (ultim în cascadă) */
html body #top .nav .lang_currency .sr-lang-dropdown .dropdown-menu,
html body #top .nav .lang_currency .sr-lang-dropdown-menu,
html body #top .nav .lang_currency .sr-lang-dropdown .dropdown-menu .dropdown-item,
html body #top .nav .lang_currency .sr-lang-dropdown-menu .dropdown-item,
html body .sr-sticky-header__locale .sr-lang-dropdown .dropdown-menu,
html body .sr-sticky-header__locale .sr-lang-dropdown-menu,
html body .sr-sticky-header__locale .sr-lang-dropdown .dropdown-menu .dropdown-item,
html body .sr-sticky-header__locale .sr-lang-dropdown-menu .dropdown-item {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

/* Sticky ≥2000px — limbă/monedă: text pe bară + meniu dropdown, 18px uniform */
@media (min-width: 2000px) {
  html body #sr-sticky-header .sr-sticky-header__locale {
    --sr-sticky-locale-font: 18px;
  }

  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-toggle,
  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-toggle span,
  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-menu,
  html body #sr-sticky-header .sr-sticky-header__locale .sr-lang-dropdown-menu,
  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-menu > li,
  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-menu a.dropdown-item,
  html body #sr-sticky-header .sr-sticky-header__locale .dropdown-menu .dropdown-item,
  html body #sr-sticky-header .sr-sticky-header__locale .sr-lang-dropdown .dropdown-menu .dropdown-item,
  html body #sr-sticky-header .sr-sticky-header__locale .sr-lang-dropdown .dropdown-menu .dropdown-item span,
  html body #sr-sticky-header .sr-sticky-header__locale .sr-lang-dropdown-menu .dropdown-item,
  html body #sr-sticky-header .sr-sticky-header__locale .sr-currency-form .dropdown .dropdown-menu .dropdown-item {
    line-height: 1.35 !important;
  }
}

/* ————————————————————————————————————————————————————————————
   Aliniere fină la test.smart-residence.ro — elemente rămase 2–4px
   mai mari (09.07.2026). sr-site-text se încarcă ultimul → câștigă.
   ———————————————————————————————————————————————————————————— */

/* Header middle — telefon 20→16, compară 16→14 */
#header .header_middle a[href^="tel"],
#header .header_middle a[href^="tel"] strong,
#header .header_middle a[href^="tel"] span,
#header .header_middle .sr-need-help__phone,
#header .header_middle .header_phone__number {
  font-size: 14px !important;
}
/* NB: `span:not(.sr-mob-header-badge)` — regula de 14px e pt. ETICHETA
   („Compară" / „Favorite"), NU pt. bulina cu numar. Fara excludere, span-ul
   prindea si `.sr-mob-header-badge` (specificitate 1,2,1) si sub 992px umfla
   numarul favoritelor la 14px, in timp ce bulina cosului ramanea 10px → arata
   mai mare decat cosul. Vezi memoria header-count-badges-size (CAPCANA #1). */
#header .header_middle .sr-header-compare,
#header .header_middle .sr-header-compare span:not(.sr-mob-header-badge),
#header .header_middle .sr-header-compare__label,
#header .header_middle .sr-header-wishlist,
#header .header_middle .sr-header-wishlist span:not(.sr-mob-header-badge),
#header .header_middle .sr-header-wishlist__label {
  font-size: 14px !important;
}

/* PDP — cantitate, specificații, descriere acordeon → ca test (14px) */
body[class*="product-product-"] #product-info .product-right .sr-pdp-qty-opbox #input-quantity {
  font-size: 14px !important;
}
body[class*="product-product-"] #product-info .product-spec-pill {
  font-size: 14px !important;
}
body[class*="product-product-"] #product-info .product-spec-panes .table td,
body[class*="product-product-"] #product-info .product-spec-panes .table th {
  font-size: 14px !important;
}
body[class*="product-product-"] #product-info #tab-description p,
body[class*="product-product-"] #product-info #tab-description li {
  font-size: 14px !important;
}
