/* Smart Residence — homepage (culori + tipografie din sr-brand, margini minime) */

/* Anti-FOUC — același conținut ca #sr-hp-critical-css din home.twig */
body.common-home #base_category_tabs .product_carousel.splide:not(.is-initialized) {
  overflow: hidden;
  min-height: 280px;
  opacity: 0;
  pointer-events: none;
}

body.common-home #base_category_tabs .product_carousel.splide.is-initialized {
  opacity: 1;
  transition: opacity 0.15s ease;
  pointer-events: auto;
}

body.common-home #base_category_tabs .product_carousel.splide:not(.is-initialized) .splide__track,
body.common-home #base_category_tabs .product_carousel.splide:not(.is-initialized) .splide__list {
  overflow: hidden !important;
}

body.common-home #base_category_tabs .product_carousel.splide:not(.is-initialized) .splide__slide:not(:first-child) {
  display: none !important;
}

body.common-home #base_category_tabs .product-thumb .image img,
body.common-home .sr-hp-modules .product-thumb .image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.common-home {
  background: #ffffff;
}

/* Tipografie + ritm vertical homepage — 14px ca test */
body.common-home {
  font-size: 14px;
  line-height: 24px;
}

.common-home #common-home.sr-hp:only-child,
.common-home #common-home.sr-hp {
  padding-top: 0;
}

.sr-hp-catalog {
  padding-top: 16px;
  padding-bottom: 24px;
}

body.common-home .sr-hp-banner + .sr-hp-catalog {
  padding-top: 20px;
}

.sr-catalog-page {
  padding: 24px 0 48px;
}

.sr-catalog-page .breadcrumb {
  margin-bottom: 20px;
}

/* Margini homepage — responsive: ca test sub 1950px; bandă laterală plafonată 120px pe ultra-wide */
body.common-home {
  --sr-hp-outer-band: clamp(0px, (100vw - 1710px) / 2, 120px);
  --sr-hp-container-max: calc(100vw - 2 * var(--sr-hp-outer-band));
  --sr-hp-container-pad: 15px;
  --sr-hp-inset: calc(var(--sr-hp-outer-band) + var(--sr-hp-container-pad));
}

body.common-home #common-home.sr-hp {
  --sr-hp-ink: #111827;
  --sr-hp-muted: #4b5563;
  --sr-hp-line: #e5e7eb;
  --sr-hp-surface: #fff;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.common-home #top > .container,
body.common-home #sr-sticky-header .container,
body.common-home #header .header_bottom > .container,
body.common-home #footer .footer_top > .container,
body.common-home #footer .footer_middle > .container,
body.common-home #footer .footer_bottom > .container {
  width: 100% !important;
  max-width: var(--sr-hp-container-max, 1710px) !important;
  margin-inline: auto !important;
  padding-left: var(--sr-hp-container-pad, 15px) !important;
  padding-right: var(--sr-hp-container-pad, 15px) !important;
  padding-inline: var(--sr-hp-container-pad, 15px) !important;
  box-sizing: border-box;
}

body.common-home #header .header_middle > .container {
  width: 100% !important;
  max-width: var(--sr-hp-container-max, 1710px) !important;
  margin-inline: auto !important;
  padding-left: max(5px, var(--sr-hp-container-pad, 15px)) !important;
  padding-right: max(5px, calc(var(--sr-hp-container-pad, 15px) + var(--sr-scrollbar-clearance, 12px))) !important;
  padding-inline: max(5px, var(--sr-hp-container-pad, 15px)) max(5px, calc(var(--sr-hp-container-pad, 15px) + var(--sr-scrollbar-clearance, 12px))) !important;
  box-sizing: border-box;
}

body.common-home #common-home.sr-hp .sr-hp__inner,
body.common-home #common-home.sr-hp .container,
body.common-home #common-home.sr-hp .sr-hp-popular-cats .container,
body.common-home #common-home.sr-hp .sr-hp-trending .container,
body.common-home #common-home.sr-hp .sr-hp-modules .container,
body.common-home #common-home.sr-hp .sr-hp-topdeal .container {
  width: 100% !important;
  max-width: var(--sr-hp-container-max) !important;
  margin-inline: auto !important;
  padding-inline: var(--sr-hp-container-pad) !important;
  box-sizing: border-box;
}

body.common-home main {
  padding: 0 !important;
}

/* —— Homepage hero banner (text stânga, carusel imagini dreapta) —— */
.sr-hp-banner {
  position: relative;
  isolation: isolate;
  color: var(--sr-hp-ink, #111827);
  background: #fff;
  border-bottom: 1px solid var(--sr-hp-line, #e5e7eb);
  box-sizing: border-box;
  margin-bottom: 70px;
}

.sr-hp-banner__inner {
  min-width: 0;
  box-sizing: border-box;
}

.sr-hp-banner__media {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.sr-hp-banner__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: visible;
}

.sr-hp-banner__slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}

.sr-hp-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0s;
}

.sr-hp-banner__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.sr-hp-banner__content {
  max-width: 42rem;
}

.sr-hp-banner__kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 410;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sr-hp-muted, #4b5563);
}

.sr-hp-banner__title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5.4vw, 4.75rem);
  font-weight: 410;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--sr-hp-ink, #111827);
  max-width: 14ch;
}

.sr-hp-banner__title-line1,
.sr-hp-banner__title-line2 {
  display: inline;
}

@media (max-width: 767.98px) {
  .sr-hp-banner__title-line1 {
    white-space: normal;
  }

  .sr-hp-banner__title-line2::before {
    content: " ";
  }
}

.sr-hp-banner__lead {
  margin: 0 0 28px;
  font-size: clamp(1.02rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--sr-hp-muted, #4b5563);
  max-width: 36em;
}

.sr-hp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sr-hp-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: var(--global-btn-radius, 30px);
  font-size: 1.02rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sr-hp-banner__btn--primary {
  background: var(--sr-btn-bg, #111827);
  color: var(--sr-btn-text, #fff);
  border: 1px solid var(--sr-btn-bg, #111827);
}

.sr-hp-banner__btn--primary:hover {
  background: var(--sr-btn-bg-hover, #374151);
  border-color: var(--sr-btn-bg-hover, #374151);
  color: var(--sr-btn-text, #fff);
}

.sr-hp-banner__btn--ghost {
  background: #fff;
  color: var(--sr-hp-ink, #111827);
  border: 1px solid var(--sr-hp-line, #e5e7eb);
}

.sr-hp-banner__btn--ghost:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: var(--sr-hp-ink, #111827);
}

@media (prefers-reduced-motion: reduce) {
  .sr-hp-banner__slide {
    transition: none !important;
  }

  .sr-hp-banner__slide:not(.is-active) {
    display: none;
  }
}

.sr-hp-banner__pager {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobil (≤767px) — hero text + imagine derulată, ~1 ecran */
@media (max-width: 767px) {
  body.common-home {
    --sr-hp-mobile-hero-min: calc(100dvh - var(--sr-hp-header-h, 108px));
  }

  .sr-hp-banner {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin: 0 0 20px;
    padding: 14px var(--sr-hp-container-pad, 16px) 12px;
    min-height: var(--sr-hp-mobile-hero-min);
    box-sizing: border-box;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--sr-hp-line, #e5e7eb);
  }

  .sr-hp-banner__inner {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }

  .sr-hp-banner__content {
    max-width: none;
  }

  .sr-hp-banner__kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .sr-hp-banner__title {
    font-size: clamp(1.35rem, 6.8vw, 1.85rem);
    line-height: 1.12;
    margin-bottom: 8px;
    max-width: none;
  }

  .sr-hp-banner__title-line1,
  .sr-hp-banner__title-line2 {
    display: inline;
  }

  .sr-hp-banner__title-line1 {
    white-space: normal;
  }

  .sr-hp-banner__lead {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 12px;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sr-hp-banner__actions {
    gap: 8px;
  }

  .sr-hp-banner__btn {
    min-height: 40px;
    padding: 0 14px !important;
    font-size: 13px !important;
    flex: 1 1 calc(50% - 4px);
  }

  .sr-hp-banner__media {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .sr-hp-banner__track,
  .sr-hp-banner__slide {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .sr-hp-banner__photo {
    max-width: min(94%, 360px);
    max-height: min(46vh, 340px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  .sr-hp-banner__pager {
    display: none;
  }

  body.common-home .sr-hp-banner + .sr-hp-popular-cats {
    padding-top: 4px;
  }
}

/* Tabletă + desktop — grid 2 coloane, imagine întreagă vizibilă */
@media (min-width: 768px) {
  .sr-hp-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 48px);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: clamp(20px, 3vw, 40px) var(--sr-hp-inset);
    min-height: clamp(360px, 62vh, 620px);
    overflow: visible;
    box-sizing: border-box;
  }

  .sr-hp-banner__inner {
    padding: clamp(8px, 1.5vw, 24px) 0;
    align-self: center;
  }

  .sr-hp-banner__content {
    max-width: 38rem;
  }

  .sr-hp-banner__title {
    font-size: clamp(1.85rem, 3.2vw, 3.5rem);
    max-width: none;
    margin-bottom: 14px;
  }

  .sr-hp-banner__title-line1,
  .sr-hp-banner__title-line2 {
    display: block;
  }

  .sr-hp-banner__title-line1 {
    white-space: nowrap;
  }

  .sr-hp-banner__lead {
    font-size: clamp(0.98rem, 1.45vw, 1.2rem);
    margin-bottom: 22px;
    max-width: 34em;
  }

  .sr-hp-banner__media {
    align-self: center;
    justify-self: stretch;
    width: 100%;
    height: clamp(240px, 48vh, 520px);
    min-height: clamp(240px, 42vh, 400px);
    max-height: clamp(280px, 56vh, 560px);
  }

  .sr-hp-banner__track,
  .sr-hp-banner__slide {
    min-height: inherit;
    height: 100%;
  }

  .sr-hp-banner__photo {
    max-width: min(100%, 520px);
    max-height: min(100%, clamp(240px, 52vh, 520px));
  }
}

@media (min-width: 1200px) {
  .sr-hp-banner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(24px, 4vw, 64px);
    padding-inline: var(--sr-hp-inset);
    min-height: clamp(420px, 68vh, 680px);
  }

  .sr-hp-banner__title {
    font-size: clamp(2.2rem, 3vw, 3.75rem);
    max-width: none;
  }

  .sr-hp-banner__media {
    height: clamp(280px, 54vh, 580px);
    max-height: clamp(320px, 58vh, 600px);
  }

  .sr-hp-banner__photo {
    max-width: min(100%, 580px);
    max-height: min(100%, clamp(280px, 54vh, 560px));
  }
}

@media (min-width: 1680px) {
  .sr-hp-banner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 4.5vw, 80px);
    padding: clamp(32px, 3.5vw, 56px) var(--sr-hp-inset);
    min-height: clamp(480px, 74vh, 760px);
  }

  .sr-hp-banner__inner {
    padding: clamp(12px, 1.5vw, 32px) 0;
    justify-self: start;
    width: 100%;
    max-width: 44rem;
  }

  .sr-hp-banner__content {
    max-width: none;
  }

  .sr-hp-banner__kicker {
    font-size: clamp(0.82rem, 0.9vw, 1rem);
    margin-bottom: clamp(14px, 1.2vw, 20px);
  }

  .sr-hp-banner__title {
    font-size: clamp(2.75rem, 3.4vw, 4.5rem);
    max-width: none;
    margin-bottom: clamp(14px, 1.4vw, 22px);
  }

  .sr-hp-banner__title-line1,
  .sr-hp-banner__title-line2 {
    display: block;
  }

  .sr-hp-banner__title-line1 {
    white-space: nowrap;
  }

  .sr-hp-banner__lead {
    font-size: clamp(1.08rem, 1.25vw, 1.38rem);
    margin-bottom: clamp(22px, 2vw, 32px);
    max-width: 32em;
  }

  .sr-hp-banner__btn {
    min-height: 42px;
    padding: 0 clamp(22px, 1.8vw, 32px);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
  }

  .sr-hp-banner__media {
    height: clamp(340px, 58vh, 640px);
    max-height: clamp(380px, 62vh, 680px);
    justify-self: start;
    width: 100%;
    max-width: 720px;
  }

  .sr-hp-banner__photo {
    max-width: min(100%, 680px);
    max-height: min(100%, clamp(340px, 60vh, 640px));
  }
}

@media (min-width: 1920px) {
  .sr-hp-banner {
    gap: clamp(48px, 5vw, 96px);
    padding-inline: var(--sr-hp-inset);
    min-height: clamp(520px, 76vh, 820px);
  }

  .sr-hp-banner__inner {
    max-width: 48rem;
    padding-left: 0;
  }

  .sr-hp-banner__title {
    font-size: clamp(3rem, 3.6vw, 5rem);
  }

  .sr-hp-banner__title-line1,
  .sr-hp-banner__title-line2 {
    display: block;
  }

  .sr-hp-banner__title-line1 {
    white-space: nowrap;
  }

  .sr-hp-banner__lead {
    font-size: clamp(1.12rem, 1.35vw, 1.45rem);
  }

  .sr-hp-banner__media {
    max-width: 800px;
    height: clamp(380px, 62vh, 700px);
    max-height: clamp(420px, 66vh, 740px);
  }

  .sr-hp-banner__photo {
    max-width: min(100%, 760px);
    max-height: min(100%, clamp(380px, 64vh, 700px));
  }
}

@media (min-width: 2560px) {
  .sr-hp-banner {
    gap: clamp(56px, 4vw, 112px);
    padding-inline: var(--sr-hp-inset);
  }

  .sr-hp-banner__title {
    font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  }

  .sr-hp-banner__title-line1 {
    white-space: nowrap;
  }

  .sr-hp-banner__media {
    max-width: 880px;
  }

  .sr-hp-banner__photo {
    max-width: min(100%, 840px);
    max-height: min(100%, clamp(420px, 62vh, 760px));
  }
}

/* Îngheață dimensiunile textului din hero la mărimea de la 1500px: pe ecrane
   late (>1500px) nu mai scalăm (anulează creșterea din blocurile 1680/1920/2560,
   care duceau titlul la 69–80px). Vine ultimul în cascadă → câștigă la >=1500px. */
@media (min-width: 1500px) {
  .sr-hp-banner__kicker {
    font-size: 0.82rem; /* 11.48px, ca la 1500px */
  }

  .sr-hp-banner__title {
    font-size: 60px; /* fix; mărit de la 48px la cererea userului (fără a ajunge la 69–80px) */
  }

  .sr-hp-banner__lead {
    font-size: 16.8px; /* 1.2rem, ca la 1500px */
  }

  .sr-hp-banner__btn {
    font-size: 1.02rem; /* 14.28px, ca la 1500px */
  }
}

/* —— Hero —— */
.sr-hp-hero {
  background: linear-gradient(
    128deg,
    color-mix(in srgb, var(--sr-band-mint, #4fffb0) 22%, #fff) 0%,
    color-mix(in srgb, var(--sr-band-cyan, #28c7d0) 16%, #fff) 42%,
    #f8fafb 100%
  );
  color: var(--sr-hp-ink);
  padding: clamp(32px, 4vw, 52px) 0 clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--sr-hp-line);
}

.sr-hp-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.sr-hp-kicker {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 410;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sr-hp-muted);
}

.sr-hp-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 410;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--sr-hp-ink);
  max-width: 18ch;
}

.sr-hp-hero__lead {
  margin: 0 0 24px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--sr-hp-muted);
  max-width: 36em;
}

.sr-hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.sr-hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--global-btn-radius, 30px);
  font-size: 1.05rem;
  font-weight: 410;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sr-hp-btn--primary {
  background: var(--sr-btn-bg, #111827);
  color: var(--sr-btn-text, #fff);
  border: 1px solid var(--sr-btn-bg, #111827);
}

.sr-hp-btn--primary:hover {
  background: var(--sr-btn-bg-hover, #374151);
  border-color: var(--sr-btn-bg-hover, #374151);
  color: var(--sr-btn-text, #fff);
}

.sr-hp-btn--secondary {
  background: transparent;
  border: 1px solid var(--sr-hp-ink);
  color: var(--sr-hp-ink);
}

.sr-hp-btn--secondary:hover {
  background: var(--sr-hp-ink);
  color: #fff;
}

.sr-hp-btn--light {
  background: #fff;
  color: var(--sr-hp-ink);
  border: 1px solid #fff;
}

.sr-hp-btn--light:hover {
  background: #f3f4f6;
  color: var(--sr-hp-ink);
}

.sr-hp-btn--ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.sr-hp-btn--ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sr-hp-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--sr-hp-line);
}

.sr-hp-hero__stat {
  margin: 0;
}

.sr-hp-hero__stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 410;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sr-hp-ink);
}

.sr-hp-hero__stat-label {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--sr-hp-muted);
}

.sr-hp-hero__visual {
  border-radius: 14px;
  overflow: hidden;
  background: var(--sr-hp-surface);
  border: 1px solid var(--sr-hp-line);
  min-height: 260px;
}

.sr-hp-hero__visual--empty {
  display: none;
}

.sr-hp-hero__visual #base_slideshow,
.sr-hp-hero__visual #base_slideshow .splide {
  margin: 0;
}

.sr-hp-hero__visual #base_slideshow .splide .contents {
  padding: 0;
}

.sr-hp-hero__visual #base_slideshow .splide .image img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}

/* —— USP —— */
.sr-hp-usp {
  background: var(--sr-hp-surface);
  border-bottom: 1px solid var(--sr-hp-line);
  padding: 14px 0;
}

.sr-hp-usp__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-hp-usp__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

.sr-hp-usp__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sr-band-cyan, #28c7d0) 18%, #fff) center / 22px no-repeat;
}

.sr-hp-usp__icon--delivery {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 17h8m-8 0a2 2 0 11-4 0m12 0a2 2 0 114 0M3 9h11v8H3V9zm11 0h3l3 4v4h-6V9z'/%3E%3C/svg%3E");
}

.sr-hp-usp__icon--warranty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'/%3E%3C/svg%3E");
}

.sr-hp-usp__icon--advice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z'/%3E%3C/svg%3E");
}

.sr-hp-usp__icon--secure {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

.sr-hp-usp__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sr-hp-usp__text strong {
  font-size: 1.05rem;
  font-weight: 410;
  color: var(--sr-hp-ink);
}

.sr-hp-usp__text span {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--sr-hp-muted);
}

/* —— Section head —— */
.sr-hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.sr-hp-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sr-hp-head__title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 410;
  letter-spacing: -0.02em;
  color: var(--sr-hp-ink);
}

.sr-hp-head__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--sr-hp-muted);
  max-width: 42em;
}

.sr-hp-catalog .sr-hp-head__lead {
  max-width: none;
}

.sr-hp-head__link {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 410;
  color: var(--sr-link, #374151);
  text-decoration: none;
  white-space: nowrap;
}

.sr-hp-head__link:hover {
  color: var(--sr-link-hover, #111827);
  text-decoration: underline;
}

/* —— Quick categories —— */
.sr-hp-quick {
  padding: 28px 0 12px;
}

.sr-hp-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sr-hp-quick__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--sr-hp-surface);
  border: 1px solid var(--sr-hp-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sr-hp-quick__card:hover {
  border-color: color-mix(in srgb, var(--sr-band-cyan, #28c7d0) 50%, var(--sr-hp-line));
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.sr-hp-quick__media {
  aspect-ratio: 4 / 3;
  background: #f8fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sr-hp-quick__media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.sr-hp-quick__label {
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 410;
  color: var(--sr-hp-ink);
  text-align: center;
  line-height: 1.35;
}

/* —— Catalog carousel —— */
.sr-hp-catalog {
  padding: 20px 0 28px;
}

.sr-hp-catalog.sr-account-dash__catalog--hero-demo {
  margin-left: 0;
  margin-right: 0;
  padding: 24px 0 32px !important;
  border-radius: 14px;
  background: #fff;
}

.sr-hp-catalog .sr-account-dash__hero-carousel {
  padding-left: 0;
  padding-right: 0;
}

.sr-hp-catalog .sr-account-dash__section-lead,
.sr-hp-catalog .sr-home__section-lead {
  font-size: 1.1rem !important;
}

@media (min-width: 992px) {
  .sr-hp-catalog .sr-hp-head__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sr-hp-catalog .sr-hp-head__lead,
  .sr-hp-catalog .sr-account-dash__section-lead {
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    font-size: clamp(0.8125rem, 0.62rem + 0.55vw, 1.05rem) !important;
    letter-spacing: -0.015em;
    line-height: 1.45;
  }
}

/* —— Rooms —— */
.sr-hp-rooms {
  padding: 12px 0 28px;
}

.sr-hp-rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sr-hp-room {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px 22px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--sr-hp-ink);
  background: var(--sr-hp-surface);
  border: 1px solid var(--sr-hp-line);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sr-hp-room::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--sr-band-gradient, linear-gradient(90deg, #4fffb0, #28c7d0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.sr-hp-room:hover {
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  border-color: #d1d5db;
}

.sr-hp-room:hover::after {
  transform: scaleX(1);
}

.sr-hp-room__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sr-band-mint, #4fffb0) 20%, #f4f5f7) center / 24px no-repeat;
}

.sr-hp-room--kitchen .sr-hp-room__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='M4 6h16M4 10h16M4 14h10M4 18h8'/%3E%3C/svg%3E");
}

.sr-hp-room--laundry .sr-hp-room__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='M4 4h16v16H4V4zm8 4v8m-4-4h8'/%3E%3C/svg%3E");
}

.sr-hp-room--care .sr-hp-room__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7' d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.sr-hp-room__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 410;
}

.sr-hp-room__text {
  margin: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--sr-hp-muted);
}

.sr-hp-room__cta {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 410;
  color: var(--sr-link-hover, #111827);
}

/* —— Steps —— */
.sr-hp-steps {
  padding: 24px 0 28px;
  background: var(--sr-hp-surface);
  border-block: 1px solid var(--sr-hp-line);
}

.sr-hp-steps__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-hp-step {
  padding: 20px 18px;
  border-radius: 12px;
  background: #f8fafb;
  border: 1px solid var(--sr-hp-line);
}

.sr-hp-step__num {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 410;
  letter-spacing: 0.08em;
  color: var(--sr-link-hover, #111827);
}

.sr-hp-step__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 410;
  color: var(--sr-hp-ink);
}

.sr-hp-step__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--sr-hp-muted);
}

/* —— Benefits —— */
.sr-hp-benefits {
  padding: 28px 0;
}

.sr-hp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sr-hp-benefit {
  padding: 20px 18px;
  border-radius: 12px;
  background: var(--sr-hp-surface);
  border: 1px solid var(--sr-hp-line);
}

.sr-hp-benefit__icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--sr-band-gradient, linear-gradient(135deg, #4fffb0, #28c7d0));
}

.sr-hp-benefit__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 410;
  color: var(--sr-hp-ink);
}

.sr-hp-benefit__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--sr-hp-muted);
}

/* —— Brands —— */
.sr-hp-brands {
  padding: 8px 0 24px;
}

.sr-hp-brands__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 410;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sr-hp-muted);
  text-align: center;
}

.sr-hp-brands__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sr-hp-brands__item {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 410;
  color: var(--sr-hp-muted);
  background: var(--sr-hp-surface);
  border: 1px solid var(--sr-hp-line);
}

.sr-hp-brands__item--accent {
  color: var(--sr-band-text, #0a3d38);
  background: var(--sr-band-gradient, linear-gradient(90deg, #4fffb0, #28c7d0));
  border: none;
}

/* —— FAQ —— */
.sr-hp-faq {
  padding: 20px 0 28px;
}

.sr-hp-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.sr-hp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-hp-faq__item {
  border: 1px solid var(--sr-hp-line);
  border-radius: 12px;
  background: var(--sr-hp-surface);
  overflow: hidden;
}

.sr-hp-faq__item[open] {
  border-color: #d1d5db;
}

.sr-hp-faq__q {
  padding: 16px 18px;
  font-size: 1.1rem;
  font-weight: 410;
  color: var(--sr-hp-ink);
  cursor: pointer;
  list-style: none;
}

.sr-hp-faq__q::-webkit-details-marker {
  display: none;
}

.sr-hp-faq__a {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sr-hp-muted);
}

/* —— CTA —— */
.sr-hp-cta {
  padding: 0 0 28px;
}

.sr-hp-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--sr-btn-bg, #111827);
  color: #fff;
}

.sr-hp-cta__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 410;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.sr-hp-cta__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}

.sr-hp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* —— Trending category tabs — ca test.smart-residence.ro (demo Avanam) —— */
.sr-hp-trending {
  padding: 24px 0 0;
  margin-bottom: 70px;
  background: #fff;
}

/* —— Categorii populare — ca test (base_product_category.css: 18px / 14px desktop) —— */
body.common-home #common-home.sr-hp .sr-hp-popular-cats,
body.common-home #common-home.sr-hp .sr-hp-topdeal {
  --sr-popcat-img: clamp(92px, 24vw, 118px);
  --sr-popcat-head: calc(var(--sr-popcat-img) + 18px);
  /* Titluri secțiune — 30px (+2px față de 28px) */
  --sr-popcat-heading: 30px;
  --sr-popcat-grid-cols: 40% 1fr;
  --sr-popcat-card-gap: 8px;
  --sr-popcat-section-mb: 48px;
  --sr-popcat-arrow-h: var(--sr-popcat-head);
  --sr-popcat-chevron-size: 18px;
  --sr-popcat-chevron-glyph: calc(var(--sr-popcat-chevron-size) * 0.44);
  padding: 20px 0 0;
  margin-bottom: var(--sr-popcat-section-mb);
  background: #fff;
  border-bottom: 1px solid var(--sr-hp-line, #e5e7eb);
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  box-sizing: border-box;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a {
  line-height: 1 !important;
  display: inline-block;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i {
  display: grid !important;
  place-items: center;
  width: var(--sr-popcat-chevron-size, 18px);
  height: var(--sr-popcat-chevron-size, 18px);
  min-width: var(--sr-popcat-chevron-size, 18px);
  min-height: var(--sr-popcat-chevron-size, 18px);
  aspect-ratio: 1;
  font-size: var(--sr-popcat-chevron-glyph, 8px);
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--sr-band-cyan, #1e91cf) !important;
  color: #fff !important;
  transform: none;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i::before {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .stickyscroll .scroll-item {
  width: 336px;
  box-sizing: border-box;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .stickyscroll > .scroll-item {
  padding: 0 12px;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper {
  margin: 0 0 18px;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4 {
  font-size: var(--sr-popcat-heading);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #111827;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top {
  min-height: var(--sr-popcat-head);
  padding: 6px;
  margin: 0 0 12px 0;
  grid-template-columns: var(--sr-popcat-grid-cols);
  gap: var(--sr-popcat-card-gap);
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image {
  height: var(--sr-popcat-img);
  max-height: var(--sr-popcat-img);
  padding: 0;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image a {
  height: var(--sr-popcat-img);
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image img.img-fluid {
  max-width: var(--sr-popcat-img) !important;
  max-height: var(--sr-popcat-img) !important;
}

/* Toate thumbnail-urile din „Cele mai populare categorii”: fundalul alb din poză
   se topește în griul cardului (mix-blend multiply), ca să pară transparent. */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image a {
  background-color: var(--global-palette8, #f7f7f7);
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .image img.img-fluid {
  mix-blend-mode: multiply;
  background: transparent !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category-wrapper .cat-top .image .img-fluid {
  transition: none !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category-wrapper:hover .cat-top .image .img-fluid {
  transform: none !important;
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-heading: 30px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4 {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-heading: 30px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4 {
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 992px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-heading: 30px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4 {
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: #111827 !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title {
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-img: clamp(96px, 20vw, 128px);
    --sr-popcat-grid-cols: 42% 1fr;
    --sr-popcat-card-gap: 10px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .stickyscroll .scroll-item {
    width: 246px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows.splide__arrows--ltr {
    top: 8px;
    height: var(--sr-popcat-arrow-h);
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    justify-content: space-between !important;
    box-sizing: border-box;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow {
    width: 24px;
    height: 24px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex: 0 0 auto;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--prev {
    margin-left: -6px !important;
    margin-right: 0 !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--next {
    margin-right: -6px !important;
    margin-left: 0 !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow svg {
    width: 8px;
    height: 8px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__list {
    display: flex !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide {
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category-wrapper,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-content {
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-img: clamp(88px, 28vw, 108px);
    --sr-popcat-grid-cols: 38% 1fr;
    --sr-popcat-section-mb: 40px;
    overflow-x: visible;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper {
    margin-bottom: 14px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .content ul.sub-menu li + li {
    margin-top: 6px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--prev {
    margin-left: -8px !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--next {
    margin-right: -8px !important;
  }
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i {
    display: grid !important;
    place-items: center;
    line-height: 1 !important;
  }
}

@media (max-width: 540px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-img: clamp(80px, 30vw, 96px);
    --sr-popcat-grid-cols: 36% 1fr;
    --sr-popcat-card-gap: 6px;
    --sr-popcat-chevron-size: 15px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .stickyscroll .scroll-item {
    width: 160px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-img: clamp(108px, 12vw, 132px);
    --sr-popcat-grid-cols: 44% 1fr;
    --sr-popcat-section-mb: 56px;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide {
    padding: 0 6px;
    box-sizing: border-box;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide:first-child {
    padding-left: 0;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide:last-child {
    padding-right: 0;
  }
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a {
  color: var(--global-palette4, #111827);
  text-decoration: none;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a.btn-pattern,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title a {
  font-size: 18px !important; /* titlu card (Cuptoare) 18px pe 1500–2000px+ */
  line-height: 1.3 !important;
}

/* Titlu card (btn-pattern) — 18px pe desktop (1500–2000px+); scade pe ecrane mici */
@media (min-width: 992px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a.btn-pattern,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title a {
    font-size: 18px !important; /* titlu card 18px pe desktop (1500–2000px+) */
    line-height: 1.3 !important;
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title a {
    font-size: 18px !important; /* consecvent 18px cu restul desktopului */
  }
}

/* Subcategorii (ex. Combine frigorifice) — 14px pe desktop (1500–2000px+) */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Vezi tot — 14px pe desktop (1500–2000px+), săgeată aliniată la dreapta textului */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title {
  margin-bottom: 12px !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a {
  font-size: 14px !important;
  line-height: 1 !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a:hover,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a:focus,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a:focus-visible,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title a:active,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a:hover,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a:focus,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a:focus-visible,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button a:active,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a:hover,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a:focus,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a:focus-visible,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a:active {
  color: var(--global-palette4, #111827) !important;
  text-decoration: none !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category ul.sub-menu li a:hover {
  color: var(--global-palette4, #111827);
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .content ul.sub-menu li + li {
  margin-top: 10px;
}

/* Categorii populare — carousel Splide, săgeți discrete peste card */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__track {
  overflow: hidden;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper .splide__arrows {
  display: none !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows,
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows.splide__arrows--ltr {
  position: absolute !important;
  top: 8px;
  left: 0;
  right: 0;
  bottom: auto !important;
  z-index: 6;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: var(--sr-popcat-arrow-h, 160px);
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  pointer-events: none;
  transform: none !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  background: #111111 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  border-radius: 50%;
  box-shadow: none;
  opacity: 1;
  transform: none !important;
  transition: background 0.2s ease, opacity 0.2s ease;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--prev svg {
  transform: scaleX(-1) !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--next svg {
  transform: none !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow:hover:not(:disabled),
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow:focus-visible:not(:disabled) {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: none;
  opacity: 1;
  outline: none;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow:disabled {
  opacity: 0.22 !important;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__slide {
  box-sizing: border-box;
}

/* Carousel la toate lățimile — carduri aliniate uniform (fără grid static) */
@media (min-width: 768px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top {
    min-height: 0;
    height: auto;
    align-items: center;
    box-sizing: border-box;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-top .title-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category h4.title {
    margin: 0 0 12px;
    line-height: 1.2;
    min-height: 0;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows,
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide > .splide__arrows.splide__arrows--ltr {
    display: flex !important;
    justify-content: space-between !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--prev {
    margin-left: -4px !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .category_carousel.splide .splide__arrow--next {
    margin-right: -4px !important;
  }
}

body.common-home #base_category_tabs {
  --global-palette1: var(--sr-band-cyan, #1e91cf);
  --global-palette7: #ffffff;
  --global-palette3: #000000;
  --global-btn-radius: 30px;
}

body.common-home #base_category_tabs .title-wrapper {
  text-align: center;
  margin: 0 0 25px;
}

body.common-home #base_category_tabs .title-wrapper h4 {
  margin: 0 0 10px;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}

body.common-home #base_category_tabs .tab-header {
  display: flex;
  justify-content: center;
  width: 100%;
}

body.common-home #base_category_tabs .tab-header .nav.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 24px;
  padding: 0;
  max-width: 100%;
  width: 100%;
  border: 0;
}

body.common-home #base_category_tabs .tab-header .nav.nav-tabs .nav-item {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

/* Tab-uri pill — gri ca butonul Adaugă în coș; activ albastru temă */
body.common-home #base_category_tabs .nav.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  padding: 10px 28px;
  background-color: #f5f5f5 !important;
  background-image: none !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  box-shadow: none !important;
}

body.common-home #base_category_tabs .nav.nav-tabs .nav-link:hover {
  background-color: #f5f5f5 !important;
  background-image: none !important;
  color: #000000 !important;
  border: none !important;
}

body.common-home #base_category_tabs .nav.nav-tabs .nav-link.active {
  background-color: #1e91cf !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 400;
}

/* Banda 1500–2000px: tab-uri (Aparate frigorifice / Hote / Îngrijirea rufelor)
   la 14px, pill redimensionat după text (token 20260710tabsz).
   Selectorul include .tab-header (specificitate 1,5,1) ca să bată regula
   `18px !important` (1,4,1) din sr-theme-blue.css, încărcat după sr-home.css. */
@media (min-width: 1500px) and (max-width: 1999.98px) {
  body.common-home #base_category_tabs .tab-header .nav.nav-tabs .nav-link {
    font-size: 14px !important;
    padding: 8px 22px !important;
  }
}

/* Carusel + săgeți dreapta sus (ca test) */
body.common-home #base_category_tabs .tab-pane {
  position: relative;
}

body.common-home #base_category_tabs .product-wrapper.product_carousel.splide {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__track {
  overflow: hidden;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrows,
body.common-home #base_category_tabs .product_carousel.splide .splide__arrows.splide__arrows--ltr {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  z-index: 4;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 4px !important;
  width: 100% !important;
  height: auto !important;
  transform: translateY(-50%) !important;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none;
  flex: 0 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  background: rgba(255, 255, 255, 0.92) !important;
  background-image: none !important;
  color: #6b7280 !important;
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
  opacity: 1;
  transform: none !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow svg {
  fill: currentColor;
  width: 0.75em;
  height: 0.75em;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow:hover:not(:disabled) {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
  transform: none !important;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow--prev {
  margin-left: 0;
}

body.common-home #base_category_tabs .product_carousel.splide .splide__arrow--next {
  margin-right: 0;
}

/* Înălțime egală pe carduri — lățimea o calculează Splide (perPage + gap) */
body.common-home #base_category_tabs .product_carousel.splide.is-initialized .splide__list {
  display: flex !important;
  align-items: stretch !important;
}

body.common-home #base_category_tabs .product_carousel.splide.is-initialized .splide__slide {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body.common-home #base_category_tabs .splide__slide {
  display: flex !important;
  flex-direction: column;
  align-self: stretch !important;
  min-width: 0;
  box-sizing: border-box;
}

body.common-home #base_category_tabs .splide__slide > script,
body.common-home #base_category_tabs .product-thumb + script,
body.common-home #base_category_tabs .splide__slide script {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Card — aceeași lățime/înălțime pe rând (inclusiv când Splide Grid înfășoară slide-ul) */
body.common-home #base_category_tabs .splide__slide .product-block.product-thumb {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  border: 1px solid #e5e5e5;
  border-radius: var(--global-border-radius, 5px);
  overflow: hidden;
}

body.common-home #base_category_tabs .product-thumb .image .countdown,
body.common-home #base_category_tabs .product-thumb .image .count-down {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

body.common-home #base_category_tabs .product-thumb .image {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.1vw, 16px);
  box-sizing: border-box;
  background-color: #ffffff !important;
}

body.common-home #base_category_tabs .product-thumb .image > a {
  position: static;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  background-color: #ffffff !important;
}

body.common-home #base_category_tabs .product-thumb .image img.img-fluid {
  background-color: transparent !important;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}

body.common-home #base_category_tabs .product-thumb .image .hover-image {
  display: none !important;
}

body.common-home #base_category_tabs .product-thumb .description .desc:empty {
  display: none;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
}

body.common-home #base_category_tabs .product-thumb .content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

body.common-home #base_category_tabs .product-thumb .description {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px 18px;
  background: #ffffff;
}

body.common-home #base_category_tabs .product-thumb .description h4,
body.common-home #base_category_tabs .product-thumb .description h4 a {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: var(--global-palette3, #000);
  min-height: 0;
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.common-home #base_category_tabs .product-thumb .description .rating {
  padding-bottom: 0;
  margin: 0;
  min-height: 0;
  flex-shrink: 0;
}

body.common-home #base_category_tabs .product-thumb .description .rating .fa-stack {
  width: 14px;
}

body.common-home #base_category_tabs .product-thumb .description .rating .fa-stack .fa-star {
  font-size: 13px;
}

body.common-home #base_category_tabs .product-thumb .description .price {
  margin: 0;
  min-height: 0;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 410;
  line-height: 24px;
  color: var(--global-palette3, #000);
}

body.common-home #base_category_tabs .product-thumb .description .price .price-new {
  font-weight: 410;
  font-size: 22px;
}

body.common-home #base_category_tabs .product-thumb .description .price .price-old {
  font-weight: 400;
  font-size: 15px;
}

body.common-home #base_category_tabs .product-thumb .description .desc {
  display: none !important;
}

body.common-home #base_category_tabs .product-thumb .description .product_cart_btn {
  display: block;
  width: 100%;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 4px;
}

body.common-home #base_category_tabs .product-thumb .description .product_cart_btn button.cart_button,
body.common-home #base_category_tabs .product-thumb .description .product_cart_btn button.cart_button.option {
  color: #000000 !important;
  background: #f5f5f5 !important;
  background-color: #f5f5f5 !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  letter-spacing: 0.01em;
  margin: 8px 0 0;
  width: 100%;
  border-radius: var(--global-btn-radius, 30px);
  min-height: 38px;
  padding: 8px 14px;
  line-height: 1.45;
}

body.common-home #base_category_tabs .product-thumb:hover .description .product_cart_btn button.cart_button:not(:disabled):not(.cart_button--disabled),
body.common-home #base_category_tabs .product-thumb .description .product_cart_btn button.cart_button:focus-visible:not(:disabled) {
  background: #1e91cf !important;
  background-color: #1e91cf !important;
  background-image: none !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons,
body.common-home .sr-hp-trending .product-thumb .product_buttons,
body.common-home #base_topdeal_product .product-thumb .product_buttons {
  display: block !important;
  z-index: 6;
  pointer-events: auto;
}

/* Iconițe wishlist/compare — doar Categorii populare + Shop By Discount */
body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon button,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon button {
  background-color: #f5f5f5 !important;
  color: #000 !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon button::before,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon button::before {
  display: none;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.wishlist-button button,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.wishlist-button button {
  background-image: url(../image/wishlist.svg) !important;
  background-size: 17px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* În favorite (ex. secțiunea „Categorii populare" = #base_category_tabs): inimă roșie
   pe fundal alb, ca la celelalte carusele. Scoatem iconița-imagine fixă și reactivăm
   masca ::before colorată în roșu. Starea NEadăugată rămâne neschimbată. */
body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.wishlist-button button.is-added,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.wishlist-button button.is-added {
  background-image: none !important;
  background-color: #fff !important;
  color: #dc2626 !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14) !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.wishlist-button button.is-added::before,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.wishlist-button button.is-added::before {
  display: block !important;
  background-color: #dc2626 !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.compare-button button,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.compare-button button {
  background-image: url(../image/compare.svg) !important;
  background-size: 18px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.quickview-button,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.quickview-button {
  display: block !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.quickview-button button,
body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.quickview-button button {
  display: block !important;
  background-image: url(../image/quickview.svg) !important;
  background-size: 17px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

body.common-home #base_category_tabs .product-thumb .product_buttons button:hover,
body.common-home #base_category_tabs .product-thumb .product_buttons button:focus-visible,
body.common-home #base_topdeal_product .product-thumb .product_buttons button:hover,
body.common-home #base_topdeal_product .product-thumb .product_buttons button:focus-visible {
  background-color: var(--sr-band-cyan, #1e91cf) !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  body.common-home #base_category_tabs .product-thumb .product_buttons .btn-icon.quickview-button,
  body.common-home #base_topdeal_product .product-thumb .product_buttons .btn-icon.quickview-button {
    display: none !important;
  }

  body.common-home #common-home.sr-hp .sr-hp-trending {
    padding: 20px 0 0;
  }

  body.common-home #base_category_tabs .title-wrapper {
    margin-bottom: 10px;
  }

  body.common-home #base_category_tabs .tab-header {
    justify-content: center;
    width: 100%;
    overflow: visible;
  }

  body.common-home #base_category_tabs .tab-header .nav.nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: stretch;
    overflow: visible;
    margin-bottom: 18px;
    padding: 0;
    gap: 8px 10px;
    max-width: 100%;
    width: 100%;
  }

  body.common-home #base_category_tabs .tab-header .nav.nav-tabs .nav-item {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    margin: 0;
  }

  body.common-home #base_category_tabs .nav.nav-tabs .nav-link {
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
  }

  body.common-home #base_category_tabs .product_carousel.splide .splide__arrow {
    width: 28px;
    height: 28px;
  }
}

/* Mobil îngust — max 2 tab-uri pe rând, al treilea centrat dedesubt */
@media (max-width: 479.98px) {
  body.common-home #base_category_tabs .tab-header .nav.nav-tabs {
    gap: 8px;
  }

  body.common-home #base_category_tabs .tab-header .nav.nav-tabs .nav-item {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
  }

  body.common-home #base_category_tabs .nav.nav-tabs .nav-link {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 14px;
  }
}

/* —— Product modules (homepage) —— */
body.common-home #common-home.sr-hp .sr-hp-modules {
  padding: 0;
  margin-bottom: 70px;
}

body.common-home .sr-hp-modules .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 3.5vw, 36px);
  row-gap: clamp(24px, 3vw, 32px);
  align-items: stretch;
}

/* Sub 850px: o singură categorie pe rând (nu 2) */
@media (max-width: 849.98px) {
  body.common-home .sr-hp-modules .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  body.common-home .sr-hp-modules .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 2000px) {
  /* Implicit 4 coloane (toate modulele prezente, inclusiv „Reduceri"). */
  body.common-home .sr-hp-modules .row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Când lipsesc module (ex. „Reduceri" fără produse), cele prezente umplu tot
     rândul: nr. de coloane = nr. de module prezente. */
  body.common-home .sr-hp-modules .row:has(> .base_products:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.common-home .sr-hp-modules .row:has(> .base_products:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.common-home .sr-hp-modules .row:has(> .base_products:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sr-hp-modules .row > .base_products {
  float: none !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: auto !important;
  max-width: none !important;
}

@media (min-width: 1200px) {
  body.common-home .sr-hp-modules .row > .base_products {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  body.common-home .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide {
    flex: 1 1 auto;
    height: 372px;
    min-height: 372px;
    max-height: 372px;
  }
}

.sr-hp-modules .row > .base_products .title-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  min-height: 32px;
}

.sr-hp-modules .row .base_products .title-wrapper h4 {
  margin: 0 0 10px;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}

.sr-hp-modules .row .base_products .product-wrapper {
  margin: 0;
  padding: 0 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  flex: 1 1 auto;
  min-height: 0;
}

/* Stivă verticală — hp_compact, 2 produse egale pe înălțime */
.sr-hp-modules .row .base_products .product-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

.sr-hp-modules .row .base_products .product-wrapper.sr-hp-module-list {
  display: grid !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.sr-hp-modules .row .base_products .product-wrapper > .col {
  flex: 1 1 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex;
  min-height: 0;
}

.sr-hp-modules .row .base_products .product-wrapper.row .col:last-child .product-thumb {
  border-bottom: 0 !important;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb {
  position: relative;
  border-width: 0 0 1px 0;
  border-style: solid;
  border-color: var(--border-color, #e5e5e5);
  padding: 20px 0;
  display: grid !important;
  grid-template-columns: 31% auto;
  align-items: start;
  gap: 20px;
  margin: 0;
  border-radius: 0 !important;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  background: #fff;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .image {
  position: static;
  overflow: visible;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #fff;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .image img.img-fluid:not(.hover-image) {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Badge reducere — colț sus-stânga al cardului (ca la vertical), nu centrat pe thumbnail */
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .image .sale-label,
body.common-home .sr-hp-modules .product-thumb .image .sale-label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content {
  min-width: 0;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description h4,
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description h4 a,
body.common-home .sr-hp-modules .product-thumb .description h4,
body.common-home .sr-hp-modules .product-thumb .description h4 a {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  min-height: 0;
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400 !important;
  color: #000;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .rating,
body.common-home .sr-hp-modules .product-thumb .description .rating {
  margin: 0;
  min-height: 0;
  line-height: 1;
}

body.common-home .sr-hp-modules .product-thumb .description .rating .fa-stack,
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .rating .fa-stack {
  width: 14px;
}

body.common-home .sr-hp-modules .product-thumb .description .rating .fa-stack .fa-star,
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .rating .fa-stack .fa-star {
  font-size: 13px;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price,
body.common-home .sr-hp-modules .product-thumb .description .price {
  margin: 0;
  min-height: 24px;
  line-height: 1.25;
  font-size: 22px;
  font-weight: 410;
  color: #000;
  width: 100%;
  max-width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

body.common-home .sr-hp-modules .product-thumb .description .price:has(.price-old) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 46px;
}

body.common-home .sr-hp-modules .product-thumb .description .price:has(.price-old) .price-old {
  margin-left: 0;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price .price-new,
body.common-home .sr-hp-modules .product-thumb .description .price .price-new {
  font-weight: 410;
  font-size: 22px;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price .price-old,
body.common-home .sr-hp-modules .product-thumb .description .price .price-old {
  font-size: 15px;
  font-weight: 400;
  margin-left: 8px;
}

/* Newsletter footer — ca test.smart-residence.ro */
body.common-home #footer #base_newsletter .newsletter-content .title-wrapper h5 {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
}

@media (max-width: 991.98px) {
  body.common-home #footer #base_newsletter .newsletter-content .title-wrapper h5 {
    font-size: 16px !important;
    font-weight: 410 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px;
  }
}

body.common-home #footer #base_newsletter .text-email {
  font-size: 14px;
  font-weight: 400;
}

body.common-home #base_category_tabs .product-thumb .description .sr-product-card__stock,
body.common-home .sr-hp-modules .product-thumb .description .sr-product-card__stock,
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .sr-product-card__stock {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-height: 18px;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  body.common-home #base_category_tabs .product-thumb .description .sr-product-card__stock,
  body.common-home .sr-hp-modules .product-thumb .description .sr-product-card__stock,
  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .sr-product-card__stock {
    font-size: 13px !important;
  }

  body.common-home #base_category_tabs .product-thumb .description .sr-product-card__stock-text,
  body.common-home .sr-hp-modules .product-thumb .description .sr-product-card__stock-text,
  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .sr-product-card__stock-text {
    display: inline !important;
    visibility: visible !important;
    font-size: 13px !important;
  }
}

.sr-hp-modules .row .product-thumb .content .description .desc,
body.common-home .sr-hp-modules .product-thumb .description .desc,
.sr-hp-modules .row .product-thumb .image .countdown {
  display: none !important;
}

/* Homepage modules — inimă sus-dreapta + coș jos-dreapta, icon negru clar */
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description {
  position: static;
  padding-right: 44px;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: visible;
  min-width: 0;
  min-height: 0;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons {
  display: block !important;
  position: absolute !important;
  top: 10px;
  right: 0;
  left: auto !important;
  bottom: auto !important;
  z-index: 8;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  transition: none;
}

body.common-home .sr-hp-modules .product-thumb:hover .product_buttons {
  opacity: 1 !important;
  transform: none !important;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons .compare-button,
body.common-home .sr-hp-modules .product-thumb .product_buttons .quickview-button {
  display: none !important;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button {
  margin: 0 !important;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  line-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #000000 !important;
  box-shadow: none !important;
  opacity: 1;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button::before {
  width: 20px !important;
  height: 20px !important;
}

body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button:hover,
body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button:focus-visible {
  background: transparent !important;
  color: #000000 !important;
  opacity: 1;
}

/* În favorite: doar inima devine roșie — fără cerc/fundal alb și fără umbră.
   Când NU e în favorite rămâne conturul negru pe transparent, ca acum. */
body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button.is-added,
body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button.is-added:hover,
body.common-home .sr-hp-modules .product-thumb .product_buttons .wishlist-button button.is-added:focus-visible {
  color: #dc2626 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1;
}

body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn {
  display: block !important;
  position: absolute;
  right: 0;
  bottom: 20px;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10;
}

body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button,
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button.option {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 36px !important;
  color: #000000 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  text-indent: -9999px;
  opacity: 1;
}

body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button::before,
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button.option::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background-color: #000000;
  -webkit-mask-image: url(../image/header-cart.svg);
  mask-image: url(../image/header-cart.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button:hover:not(:disabled):not(.cart_button--disabled):not(.cart_button--no-stock),
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button:focus-visible:not(:disabled):not(.cart_button--no-stock),
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button.option:hover:not(:disabled),
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button.option:focus-visible:not(:disabled),
body.common-home .sr-hp-modules .product-thumb:hover .description .product_cart_btn button.cart_button:not(:disabled):not(.cart_button--disabled):not(.cart_button--no-stock),
body.common-home .sr-hp-modules .product-thumb:hover .description .product_cart_btn button.cart_button.option:not(:disabled) {
  background: transparent !important;
  background-color: transparent !important;
  color: #000000 !important;
  border: none !important;
  opacity: 1;
}

body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button--disabled,
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button:disabled,
body.common-home .sr-hp-modules .product-thumb .description .product_cart_btn button.cart_button--no-stock {
  opacity: 1 !important;
  color: #9ca3af !important;
  cursor: pointer;
  pointer-events: auto;
}

/* Carusel Splide — 2 produse stivuite per pagină; săgeți în header (lângă titlu) */
.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  padding: 0 20px;
  min-height: 372px;
  height: 372px;
  max-height: 372px;
  overflow: hidden;
}

.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__track,
.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__list {
  height: 100%;
  flex: 1 1 auto;
}

.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__slide {
  box-sizing: border-box;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
}

.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__slide__row {
  flex: 1 1 50%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__slide__row .product-thumb {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: visible;
}

/* Ca stylesheet.css — o linie pe thumb; ultimul rând fără linie */
.sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .splide__slide .splide__slide__row:last-child .product-thumb {
  border-bottom: 0 !important;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrows,
.sr-hp-modules .row .base_products .title-wrapper .splide__arrows.splide__arrows--ltr {
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-shrink: 0;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: auto;
  transform: none !important;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  margin: 0;
  padding: 0;
  background: transparent !important;
  background-image: none !important;
  color: var(--sr-hp-ink, #111827) !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow--prev {
  order: 1;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow--next {
  order: 2;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow svg {
  fill: currentColor !important;
  width: 0.85em;
  height: 0.85em;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow--prev svg {
  transform: scaleX(-1) !important;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow--next svg {
  transform: none !important;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow:hover:not(:disabled) {
  color: #374151 !important;
  background: transparent !important;
}

.sr-hp-modules .row .base_products .title-wrapper .splide__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 1199px) {
  .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide {
    padding: 0 20px;
    min-height: 352px;
    height: 352px;
    max-height: 352px;
  }

  .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .product-thumb {
    min-height: 0;
  }

  .sr-hp-modules .row .base_products .title-wrapper .splide__arrow {
    width: 1.65em;
    height: 1.65em;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    min-height: 138px;
    padding: 18px 0;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .image {
    width: 108px;
    min-width: 108px;
    max-width: 108px;
    height: 108px;
  }
}

@media (max-width: 575px) {
  body.common-home .sr-hp-modules .row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide {
    padding: 0 18px;
    min-height: 300px;
    height: 300px;
    max-height: 300px;
  }

  .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .product-thumb {
    min-height: 0;
    padding: 14px 0;
  }

  .sr-hp-modules .row .base_products .title-wrapper .splide__arrow {
    width: 1.5em;
    height: 1.5em;
  }

  .sr-hp-modules .row .base_products .product-wrapper {
    padding: 0 18px;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-height: 128px;
    padding: 16px 0;
  }

  .sr-hp-modules .row .base_products .product-wrapper.product_carousel.splide .product-thumb {
    min-height: 0;
    padding: 14px 0;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .image {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    height: 96px;
  }
}

/* Săgeți navigare titlu module (Recomandate / Cele mai noi / Cele mai vândute /
   Reduceri) — chevron mai discret pe banda 1500–2000px (erau 1.75em ≈ 24.5px). */
@media (min-width: 1500px) and (max-width: 1999.98px) {
  .sr-hp-modules .row .base_products .title-wrapper .splide__arrow {
    width: 1.35em;
    height: 1.35em;
  }

  .sr-hp-modules .row .base_products .title-wrapper .splide__arrow svg {
    width: 0.72em;
    height: 0.72em;
  }
}

/* Mobil — preț ca test.smart-residence.ro (767px: 13px) */
@media (max-width: 767.98px) {
  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price,
  body.common-home .sr-hp-modules .product-thumb .description .price {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 410;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price .price-new,
  body.common-home .sr-hp-modules .product-thumb .description .price .price-new {
    font-size: 16px;
    font-weight: 410;
  }

  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description .price .price-old,
  body.common-home .sr-hp-modules .product-thumb .description .price .price-old {
    font-size: 13px;
    margin-left: 6px;
  }
}

.common-home #footer {
  margin-top: 0;
}

/* —— Responsive —— */
@media (max-width: 1199px) {
  .sr-hp-quick__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .sr-hp-hero__layout {
    grid-template-columns: 1fr;
  }

  .sr-hp-hero__title {
    max-width: none;
  }

  .sr-hp-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-hp-usp__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-hp-rooms__grid,
  .sr-hp-benefits__grid {
    grid-template-columns: 1fr;
  }

  .sr-hp-steps__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-hp-faq__layout {
    grid-template-columns: 1fr;
  }

  .sr-hp-cta__panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .sr-hp-head {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* Mobil: suprascrieri în sr-mobile.css (încărcat după sr-home) */

@media (max-width: 575px) {
  body.common-home {
    --sr-hp-container-pad: var(--sr-mobile-pad, 16px);
    --sr-hp-inset: calc(var(--sr-hp-outer-band) + var(--sr-hp-container-pad));
  }

  body.common-home #common-home.sr-hp .sr-hp-modules {
    padding-bottom: 36px;
  }

  .sr-hp-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sr-hp-steps__track {
    grid-template-columns: 1fr;
  }

  .sr-hp-hero__actions,
  .sr-hp-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .sr-hp-btn {
    width: 100%;
  }

  .sr-hp-usp__list {
    grid-template-columns: 1fr;
  }

  .sr-hp-hero__title {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats,
  body.common-home #common-home.sr-hp .sr-hp-trending,
  body.common-home #common-home.sr-hp .sr-hp-topdeal {
    padding-top: 32px;
  }
}

@media (min-width: 1200px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats {
    --sr-popcat-section-mb: 70px;
    --sr-popcat-img: 118px;
    --sr-popcat-head: 168px;
    --sr-popcat-grid-cols: 42% 1fr;
  }
}

/* —— Shop By Discount — aliniat la Categorii populare (spațiere + bordură card) —— */
body.common-home #common-home.sr-hp .sr-hp-topdeal {
  margin: 0 0 70px;
  background: #fff;
  border-bottom: 1px solid var(--sr-hp-line, #e5e7eb);
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  box-sizing: border-box;
}

body.common-home #base_topdeal_product {
  --sr-topdeal-meta-gap: 8px;
  --sr-topdeal-timer-slot: 76px;
  width: 100%;
  font-size: 14px;
  line-height: 24px;
  /* Tema setează --global-palette3 la #fff (text pe butoane); pe card alb prețul trebuie negru */
  --global-palette3: #000000;
  --global-palette6: #666666;
}

body.common-home #base_topdeal_product .title-wrapper {
  text-align: center;
  margin: 0 0 18px;
}

body.common-home #base_topdeal_product .title-wrapper h4 {
  margin: 0 0 8px;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.35;
  color: #111827;
  text-align: center;
}

body.common-home #base_topdeal_product .product-wrapper.product_carousel.splide {
  position: relative;
  padding: 0;
  visibility: visible;
}

body.common-home #base_topdeal_product .product_carousel.splide:not(.is-initialized) {
  overflow: hidden;
}

body.common-home #base_topdeal_product .product_carousel.splide:not(.is-initialized) .splide__slide:not(:first-child) {
  display: none;
}

body.common-home #base_topdeal_product .product_carousel.splide.is-initialized .splide__list {
  display: flex !important;
  align-items: stretch !important;
}

body.common-home #base_topdeal_product .product_carousel.splide.is-initialized .splide__slide {
  box-sizing: border-box !important;
  min-width: 0 !important;
  height: auto !important;
  align-self: stretch !important;
}

body.common-home #base_topdeal_product .splide__slide {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch !important;
  min-width: 0;
  height: auto !important;
}

body.common-home #base_topdeal_product .splide__slide .product-block.product-thumb {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  box-sizing: border-box;
  background: #ffffff !important;
  border: 1px solid #e5e5e5;
  border-radius: var(--global-border-radius, 5px);
  overflow: hidden;
}

body.common-home #base_topdeal_product .product_carousel.splide .splide__arrows,
body.common-home #base_topdeal_product .product_carousel.splide .splide__arrows.splide__arrows--ltr {
  position: absolute;
  top: var(--sr-topdeal-arrows-top, 38%);
  left: 0;
  right: 0;
  bottom: auto;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 0 4px;
  width: 100% !important;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

body.common-home #base_topdeal_product .product_carousel.splide .splide__arrow {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  opacity: 1;
  width: 2.5em;
  height: 2.5em;
}

body.common-home #base_topdeal_product .product_carousel.splide .splide__arrow--prev {
  margin-left: 0;
}

body.common-home #base_topdeal_product .product_carousel.splide .splide__arrow--next {
  margin-right: 0;
}

body.common-home #base_topdeal_product .product_carousel.splide .splide__arrow:disabled {
  opacity: 0.35;
}

body.common-home #base_topdeal_product .product-thumb .content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-width: 0;
  min-height: 0;
}

body.common-home #base_topdeal_product .product-thumb:not(:has(.sr-topdeal-offer-timer)) .content {
  padding-top: var(--sr-topdeal-timer-slot);
  box-sizing: border-box;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer {
  flex: 0 0 auto;
  width: 100%;
  min-height: var(--sr-topdeal-timer-slot);
  margin: 0;
  padding: 0;
  background: #ffffff;
  box-sizing: border-box;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countdown,
body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .count-down {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  pointer-events: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime {
  margin: 0;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer__label {
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 410;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox {
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  background-color: #fef2f2;
  border: 1px solid rgba(223, 48, 48, 0.35);
  text-align: center;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 410;
  color: #df3030;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .time {
  display: block !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 410;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #991b1b;
}

body.common-home #base_topdeal_product .product-thumb .image {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.1vw, 16px);
  box-sizing: border-box;
  background-color: #ffffff !important;
  border-radius: 0;
}

body.common-home #base_topdeal_product .product-thumb .image > a {
  position: static;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  background-color: #ffffff !important;
}

body.common-home #base_topdeal_product .product-thumb .image img.img-fluid {
  background-color: transparent !important;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}

body.common-home #base_topdeal_product .product-thumb .image .hover-image {
  display: none !important;
}

body.common-home #base_topdeal_product .product-thumb .description {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  background: #ffffff;
  min-width: 0;
  min-height: 0;
}

body.common-home #base_topdeal_product .product-thumb .sr-topdeal-product-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sr-topdeal-meta-gap);
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

body.common-home #base_topdeal_product .product-thumb .description h4,
body.common-home #base_topdeal_product .product-thumb .description h4 a {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: var(--global-palette3, #000);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.6em);
}

body.common-home #base_topdeal_product .product-thumb .description .rating {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  min-height: 14px;
}

body.common-home #base_topdeal_product .product-thumb .description .rating .fa-stack {
  width: 12px;
}

body.common-home #base_topdeal_product .product-thumb .description .rating .fa-stack .fa-star {
  font-size: 11px;
}

body.common-home #base_topdeal_product .product-thumb .description .price {
  margin: 0;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 410;
  line-height: 1.35;
  color: #000;
}

body.common-home #base_topdeal_product .product-thumb .description .price .price-new {
  font-weight: 410;
  font-size: 22px;
  color: #000;
}

body.common-home #base_topdeal_product .product-thumb .description .price .price-old {
  font-weight: 400;
  font-size: 15px;
  color: #666;
  text-decoration: line-through;
}

body.common-home #base_topdeal_product .product-thumb .description .product_cart_btn {
  display: block;
  width: 100%;
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 10px;
  padding-top: 0;
  flex-shrink: 0;
}

body.common-home #base_topdeal_product .product-thumb .description .product_cart_btn button.cart_button,
body.common-home #base_topdeal_product .product-thumb .description .product_cart_btn button.cart_button.option {
  color: #000000 !important;
  background: #f5f5f5 !important;
  background-color: #f5f5f5 !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  margin: 0;
  width: 100%;
  display: block;
  border-radius: var(--global-btn-radius, 30px);
  min-height: 40px;
  padding: 8px 16px;
  line-height: 1.45;
}

body.common-home #base_topdeal_product .product-thumb:hover .description .product_cart_btn button.cart_button:not(:disabled):not(.cart_button--disabled),
body.common-home #base_topdeal_product .product-thumb .description .product_cart_btn button.cart_button:focus-visible:not(:disabled) {
  background: #1e91cf !important;
  background-color: #1e91cf !important;
  background-image: none !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 400 !important;
}

body.common-home #base_topdeal_product .product-thumb .image .sale-label {
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  line-height: 20px !important;
  padding: 0 10px !important;
  color: #fff !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-topdeal {
    padding-top: 0;
  }

  body.common-home #base_topdeal_product .title-wrapper {
    margin-bottom: 14px;
  }

  body.common-home #base_topdeal_product .title-wrapper h4 {
    font-size: 24px !important;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox {
    min-width: 38px;
    padding: 5px 6px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner strong {
    font-size: 16px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .time {
    font-size: 11px;
  }

  body.common-home #base_topdeal_product .splide__slide .product-block.product-thumb {
    padding: 6px;
    gap: 6px;
  }
}

/* Titluri secțiuni homepage — 30px desktop (≥1200px); sub 1200px → sr-mobile-site-type.css */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4,
body.common-home #base_topdeal_product .title-wrapper h4,
body.common-home #base_category_tabs .title-wrapper h4,
body.common-home .sr-hp-modules .row .base_products .title-wrapper h4 {
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

@media (max-width: 767.98px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .title-wrapper h4,
  body.common-home #base_topdeal_product .title-wrapper h4,
  body.common-home #base_category_tabs .title-wrapper h4,
  body.common-home .sr-hp-modules .row .base_products .title-wrapper h4 {
    line-height: 1.3 !important;
  }
}

/* Vezi tot — săgeată centrată în cerc (ultim, toate breakpoint-urile) */
body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i {
  display: grid !important;
  place-items: center !important;
  width: var(--sr-popcat-chevron-size, 18px) !important;
  height: var(--sr-popcat-chevron-size, 18px) !important;
  min-width: var(--sr-popcat-chevron-size, 18px) !important;
  min-height: var(--sr-popcat-chevron-size, 18px) !important;
  font-size: var(--sr-popcat-chevron-glyph, 8px) !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i::before {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop (cerc 18px): săgeată puțin mai jos în centru optic */
@media (min-width: 541px) {
  body.common-home #common-home.sr-hp .sr-hp-popular-cats #base_product_category .cat-button i::before {
    transform: translateY(1px);
  }
}

/* Popup — produs indisponibil (toate cardurile) */
.product-thumb .description .product_cart_btn button.cart_button--no-stock {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Modal „produs indisponibil" — stilizat centralizat în sr-brand.css (site-wide).
   Duplicatul de aici a fost eliminat (curățare dimensiuni, 09.07). */

/* Top deal — timp rămas mai compact pe mobil/tabletă */
@media (max-width: 991.98px) {
  body.common-home #base_topdeal_product {
    --sr-topdeal-timer-slot: 64px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer__label {
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime {
    gap: 4px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox {
    min-width: 30px;
    padding: 3px 4px;
    border-radius: 6px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner {
    gap: 1px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner strong {
    font-size: 13px;
    line-height: 1.15;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .time {
    font-size: 9px;
    line-height: 1.1;
  }
}

@media (max-width: 575.98px) {
  body.common-home #base_topdeal_product {
    --sr-topdeal-timer-slot: 58px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer__label {
    font-size: 9px;
    margin-bottom: 3px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime {
    gap: 3px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox {
    min-width: 26px;
    padding: 2px 3px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .timebox-inner strong {
    font-size: 12px;
  }

  body.common-home #base_topdeal_product .product-thumb .sr-topdeal-offer-timer .countbox.hastime .timebox .time {
    font-size: 8px;
  }
}

/* (butonul „Adaugă în coș" pe home la desktop e reglat în sr-mobile-site-type.css,
   fișierul încărcat ultimul — vezi override-ul @media (min-width: 992px) de acolo). */

/* ════════════════════════════════════════════════════════════════════════
   Nume produs pe mobil (≤991px), homepage: maximum 2 rânduri.
   Pe desktop rămâne limita de 3 rânduri (regulile de mai sus).
   Token 20260828name2m3d.
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  body.common-home #base_category_tabs .product-thumb .description h4,
  body.common-home #base_category_tabs .product-thumb .description h4 a,
  body.common-home #base_topdeal_product .product-thumb .description h4,
  body.common-home #base_topdeal_product .product-thumb .description h4 a,
  body.common-home .sr-hp-modules .product-thumb .description h4,
  body.common-home .sr-hp-modules .product-thumb .description h4 a,
  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description h4,
  .sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Modulele de pe homepage (cele 4 carusele): coloana de text ocupă toată
   înălțimea cardului, ca stocul + stelele și rândul preț / „Adaugă în coș"
   să stea jos, aliniate pe toate cardurile, indiferent de lungimea numelui.
   Token 20260828cardglue.
   ════════════════════════════════════════════════════════════════════════ */
.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content,
body.common-home .sr-hp-modules .product-thumb .content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.sr-hp-modules .row .base_products .product-wrapper .product-thumb .content .description,
body.common-home .sr-hp-modules .product-thumb .content .description {
  flex: 1 1 auto;
}
