:root {
  --ef-blue: #214f9b;
  --ef-blue-dark: #123a7a;
  --ef-blue-deep: #0d2f68;
  --ef-green: #73c92d;
  --ef-green-dark: #59ad1f;
  --ef-ink: #183153;
  --ef-muted: #607087;
  --ef-bg: #f4f7fb;
  --ef-border: #dce4ee;
  --ef-white: #fff;
  --ef-shadow: 0 16px 42px rgba(17, 49, 95, .11);
}

body { color: var(--ef-ink); background: var(--ef-white); }
a { color: var(--ef-blue); }
.container-md { max-width: 1320px; }

/* Header */
.ef-topbar { background: var(--ef-blue-deep); color: rgba(255,255,255,.88); font-size: .78rem; }
.ef-topbar__inner, .ef-topbar__left, .ef-topbar__right { display: flex; align-items: center; }
.ef-topbar__inner { justify-content: space-between; min-height: 38px; gap: 24px; }
.ef-topbar__left, .ef-topbar__right { gap: 20px; }
.ef-topbar i { color: var(--ef-green); font-size: 17px; vertical-align: middle; margin-right: 5px; }
.ef-topbar a { color: inherit; }
.ef-topbar strong { color: var(--ef-white); }
.ef-header-main { background: var(--ef-white); border-bottom: 1px solid var(--ef-border); }
.ef-header-main__inner { min-height: 112px; display: grid; grid-template-columns: 220px minmax(360px, 1fr) auto; align-items: center; gap: 34px; }
.ef-header-main__logo img { display: block; max-width: 205px; max-height: 74px; width: auto; height: auto; }
.ef-header-main__search { min-width: 0; }
.ef-search-label { margin: 0 0 7px 4px; color: var(--ef-muted); font-size: .75rem; font-weight: 600; }
.ef-header-main__search #_desktop_ps_searchbar { width: 100%; max-width: none; padding: 0; margin: 0 !important; }
.ef-header-main__search .ps-searchbar { width: 100%; }
.ef-header-main__search .ps-searchbar__form { width: 100%; position: relative; }
.ef-header-main__search .ps-searchbar__input { width: 100%; height: 52px; border: 2px solid #d5dfec; border-radius: 11px; padding-left: 52px; padding-right: 44px; background: #f8fafc; box-shadow: none; }
.ef-header-main__search .ps-searchbar__input:focus { border-color: var(--ef-green); background: var(--ef-white); box-shadow: 0 0 0 4px rgba(115,201,45,.13); }
.ef-header-main__search .ps-searchbar__magnifier { color: var(--ef-blue); left: 17px; }
.ef-header-main__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.ef-header-main__actions > * { margin: 0 !important; }
.ef-header-main__actions .header-block__action-btn { color: var(--ef-blue-dark); }
.ef-mainmenu { background: linear-gradient(90deg, var(--ef-blue-dark), var(--ef-blue)); box-shadow: 0 5px 16px rgba(13,47,104,.16); }
.ef-mainmenu .container-md { min-height: 54px; display: flex; align-items: stretch; }
.ef-mainmenu #_desktop_top_menu, .ef-mainmenu .top-menu, .ef-mainmenu .menu { width: 100%; }
.ef-mainmenu a { color: var(--ef-white); font-weight: 700; letter-spacing: .01em; }
.ef-mainmenu a:hover, .ef-mainmenu a:focus, .ef-mainmenu .current a { color: var(--ef-green); }
.ef-mainmenu .popover, .ef-mainmenu .sub-menu, .ef-mainmenu .submenu { background: var(--ef-white); border: 0; box-shadow: var(--ef-shadow); }
.ef-mainmenu .popover a,
.ef-mainmenu .sub-menu a,
.ef-mainmenu .submenu a,
.ef-mainmenu .submenu .submenu__left-item { color: var(--ef-ink) !important; }
.ef-mainmenu .popover a:hover,
.ef-mainmenu .sub-menu a:hover,
.ef-mainmenu .submenu a:hover,
.ef-mainmenu .submenu a:focus,
.ef-mainmenu .submenu .submenu__left-item.active {
  color: var(--ef-blue-dark) !important;
  background: #eef4fb;
}
.ef-reassurance { background: #eef5e8; border-bottom: 1px solid #d8e9cb; }

/* Homepage */
#index .page-content--home { padding: 0; }
.ef-home { width: 100%; overflow: hidden; }
.ef-hero { position: relative; isolation: isolate; min-height: 560px; overflow: hidden; background: #eef6ff url("../img-dist/elettrofix-hero-b2b.jpg") center center / cover no-repeat; }
.ef-hero--fallback::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 38%, rgba(255,255,255,.46) 55%, rgba(255,255,255,0) 76%); pointer-events: none; }
.ef-hero__module { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.ef-hero__module > *, .ef-hero__module .carousel, .ef-hero__module .carousel-inner, .ef-hero__module .carousel-item, .ef-hero__module figure { width: 100%; height: 100%; margin: 0; }
.ef-hero__module img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ef-hero__module figure { position: relative; }
.ef-hero__module figcaption.caption,
.ef-hero__module .carousel-caption {
  display: block !important;
  position: absolute;
  z-index: 3;
  top: 50%;
  right: auto;
  bottom: auto;
  left: max(5vw, calc((100% - 1320px) / 2));
  width: min(620px, 46vw);
  padding: 30px 34px;
  transform: translateY(-50%);
  text-align: left;
  color: var(--ef-ink);
  background: transparent;
  border-left: 6px solid var(--ef-green);
  border-radius: 0 18px 18px 0;
  box-shadow: 0 18px 45px rgba(13,58,118,.14);
}
.ef-hero__module figcaption h2,
.ef-hero__module figcaption .display-1,
.ef-hero__module .carousel-caption h2 {
  margin: 0 0 14px;
  color: var(--ef-blue-deep);
  font-size: clamp(2.25rem, 3.7vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-transform: none !important;
}
.ef-hero__module .caption-description,
.ef-hero__module .caption-description p {
  margin: 0;
  color: var(--ef-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.ef-hero__module .carousel-indicators { display: flex !important; z-index: 4; }
.ef-hero__module .direction,
.ef-hero__module .carousel-control,
.ef-hero__module .carousel-control-prev,
.ef-hero__module .carousel-control-next { display: flex !important; z-index: 4; width: 6%; }
.ef-hero__grid { position: relative; z-index: 2; min-height: 560px; display: flex; align-items: center; padding-top: 78px; padding-bottom: 78px; }
.ef-hero__copy { width: min(56%, 700px); }
.ef-eyebrow { display: inline-block; color: var(--ef-blue); font-size: .78rem; line-height: 1; font-weight: 800; letter-spacing: .16em; margin-bottom: 18px; }
.ef-hero h1 { margin: 0 0 22px; color: var(--ef-blue-deep); font-size: clamp(2.5rem, 4.3vw, 4.25rem); line-height: 1.03; letter-spacing: -.045em; }
.ef-hero h1 span { color: var(--ef-green); }
.ef-hero__copy > p { max-width: 650px; margin: 0; color: var(--ef-muted); font-size: 1.08rem; line-height: 1.75; }
.ef-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ef-btn-primary, .ef-btn-secondary { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; padding: 0 24px; font-weight: 800; }
.ef-btn-primary { background: var(--ef-green); border-color: var(--ef-green); color: #163b08; }
.ef-btn-primary:hover { background: var(--ef-green-dark); border-color: var(--ef-green-dark); color: #fff; transform: translateY(-1px); }
.ef-btn-secondary { background: var(--ef-white); border: 1px solid #cfd9e6; color: var(--ef-blue); }
.ef-btn-secondary:hover { border-color: var(--ef-blue); color: var(--ef-blue-dark); }
.ef-benefits { background: var(--ef-blue-deep); color: var(--ef-white); }
.ef-benefits__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.ef-benefits__grid > div { min-height: 112px; display: flex; align-items: center; gap: 15px; padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.13); }
.ef-benefits__grid > div:last-child { border-right: 0; }
.ef-benefits i { color: var(--ef-green); font-size: 34px; }
.ef-benefits span { display: flex; flex-direction: column; color: rgba(255,255,255,.68); font-size: .78rem; line-height: 1.5; }
.ef-benefits strong { color: var(--ef-white); font-size: .92rem; }
.ef-section { padding: 86px 0; }
.ef-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.ef-section-heading span { color: var(--ef-green-dark); font-size: .74rem; font-weight: 800; letter-spacing: .16em; }
.ef-section-heading h2 { margin: 7px 0 0; color: var(--ef-blue-deep); font-size: clamp(1.8rem,3vw,2.65rem); letter-spacing: -.03em; }
.ef-section-heading > a { display: inline-flex; align-items: center; gap: 7px; color: var(--ef-blue); font-weight: 800; }
.ef-section-heading > a i { font-size: 19px; }
.ef-categories { background: var(--ef-bg); }
.ef-categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ef-category { min-height: 190px; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; align-items: center; column-gap: 22px; padding: 25px; background: var(--ef-white); border: 1px solid var(--ef-border); border-radius: 14px; color: var(--ef-ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ef-category:hover { color: var(--ef-blue); border-color: rgba(115,201,45,.65); box-shadow: var(--ef-shadow); transform: translateY(-4px); }
.ef-category__icon { grid-row: 1 / 3; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: #f1f7eb; border: 2px solid var(--ef-green); }
.ef-category__icon i { color: var(--ef-green-dark); font-size: 41px; }
.ef-category__icon--image { overflow: hidden; background: var(--ef-white); }
.ef-category__icon--image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ef-category strong { align-self: end; font-size: 1.03rem; line-height: 1.45; }
.ef-category small { align-self: start; color: var(--ef-muted); margin-top: 8px; }
.ef-home-products { padding: 86px 0 70px; background: var(--ef-white); }
.ef-home-products .products-section-title { margin-top: 0; color: var(--ef-blue-deep); font-size: 2rem; letter-spacing: -.025em; text-align: left; }
.ef-home-products section + section { margin-top: 70px; }
.ef-brands { padding: 76px 0; background: linear-gradient(135deg, var(--ef-blue-deep), var(--ef-blue)); }
.ef-section-heading--light h2 { color: var(--ef-white); }
.ef-brands__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ef-brands__grid a { min-height: 104px; padding: 18px 24px; display: grid; place-items: center; border: 2px solid transparent; border-radius: 12px; background: var(--ef-white); box-shadow: 0 8px 22px rgba(4,24,57,.16); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ef-brands__grid a:hover { border-color: var(--ef-green); box-shadow: 0 13px 28px rgba(4,24,57,.26); transform: translateY(-3px); }
.ef-brands__grid img { display: block; width: auto; max-width: 168px; height: auto; max-height: 48px; object-fit: contain; }
.ef-brands__grid .ef-brand-logo--tall { max-height: 70px; }
.ef-brands__grid .ef-brand-card--ariete { background: #15924a; }
.ef-brands__grid .ef-brand-card--rowenta { background: #34424c; }
.ef-brands__grid .ef-brand-card--rowenta img { max-width: 184px; max-height: 54px; }
.ef-partner { position: relative; isolation: isolate; padding: 82px 0; min-height: 460px; display: flex; align-items: center; background: var(--ef-blue-deep) url("../img-dist/elettrofix-banner-crema.jpg") center 45% / cover no-repeat; overflow: hidden; }
.ef-partner::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(7,35,79,.34) 0%, rgba(7,35,79,.16) 43%, rgba(7,35,79,0) 61%); pointer-events: none; }
.ef-partner__module { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.ef-partner__module > *, .ef-partner__module a { display: block; width: 100%; height: 100%; margin: 0; }
.ef-partner__module > .container,
.ef-partner__module .container,
.ef-partner__module > .container-md,
.ef-partner__module .container-md {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ef-partner__module picture { display: block; width: 100%; height: 100%; }
.ef-partner__module img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ef-partner__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: center; }
.ef-partner__inner--crema { grid-template-columns: minmax(0, 640px) 1fr; }
.ef-partner__crema-copy { max-width: 620px; }
.ef-partner .ef-eyebrow { color: var(--ef-green); }
.ef-partner h2 { margin: 0; color: var(--ef-white); font-size: clamp(2rem,3.5vw,3.2rem); line-height: 1.1; letter-spacing: -.035em; }
.ef-partner__crema-copy p { max-width: 560px; margin: 18px 0 24px; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.65; }
.ef-partner__action p { color: rgba(255,255,255,.78); line-height: 1.65; }
.ef-partner .ef-btn-primary { background: var(--ef-green); border-color: var(--ef-green); color: #173b0a; }

/* Category pages: subcategories as illustrated buttons */
.page-category .category__cover {
  margin-bottom: 1.5rem;
  display: none;
}

#category #left-column { display: none !important; }
#category #content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
#category .ef-subcategories { margin: 24px 0 32px; }
#category .ef-subcategories__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(155px, 190px));
  align-items: stretch;
  gap: 14px;
}
#category .ef-subcategory-button {
  position: relative;
  display: grid !important;
  grid-template-rows: 150px minmax(54px, auto);
  width: 100% !important;
  min-width: 0 !important;
  min-height: 204px;
  padding: 0 !important;
  overflow: hidden;
  color: var(--ef-blue-deep) !important;
  background: var(--ef-white) !important;
  border: 1px solid var(--ef-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 16px rgba(17,49,95,.07);
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#category .ef-subcategory-button:hover,
#category .ef-subcategory-button:focus {
  color: var(--ef-blue) !important;
  border-color: var(--ef-blue) !important;
  box-shadow: 0 12px 28px rgba(17,49,95,.14);
  transform: translateY(-3px);
}
#category .ef-subcategory-button__image { display: block; width: 100%; height: 150px; padding: 8px; overflow: hidden; background: #f7f9fc; }
#category .ef-subcategory-button__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 8px;
}
#category .ef-subcategory-button__name {
  display: flex !important;
  align-items: center;
  padding: 11px 42px 11px 13px !important;
  color: inherit !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  line-height: 1.25;
  text-transform: none !important;
}
#category .ef-subcategory-button__arrow {
  position: absolute;
  right: 12px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #173b0a;
  background: var(--ef-green);
  border-radius: 50%;
}
#category .ef-subcategory-button__arrow i { font-size: 16px; }

/* CMS pages: Azienda, Dove siamo, Contattaci */
.ef-cms { margin: 0 auto 48px; color: var(--ef-ink); }
.ef-cms * { box-sizing: border-box; }
.ef-cms__hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(30px, 5vw, 62px);
  background: linear-gradient(125deg, var(--ef-blue-deep), var(--ef-blue));
  border-radius: 20px;
  color: var(--ef-white);
  box-shadow: var(--ef-shadow);
}
.ef-cms__hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 50px solid rgba(115,201,45,.18);
  border-radius: 50%;
}
.ef-cms__eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #a9ef70;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ef-cms__hero h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ef-white);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.ef-cms__hero p { position: relative; z-index: 1; max-width: 760px; margin: 0; color: rgba(255,255,255,.86); font-size: 1.05rem; line-height: 1.7; }
.ef-cms__intro { max-width: 900px; margin: 0 auto 30px; font-size: 1.04rem; line-height: 1.75; text-align: center; color: var(--ef-muted); }
.ef-cms__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 26px 0; }
.ef-cms__grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ef-cms__card { padding: 26px; background: var(--ef-white); border: 1px solid var(--ef-border); border-radius: 16px; box-shadow: 0 10px 28px rgba(17,49,95,.07); }
.ef-cms__card i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; color: var(--ef-blue); background: #eef5ff; border-radius: 12px; font-size: 27px; }
.ef-cms__card h3 { margin: 0 0 10px; color: var(--ef-blue-deep); font-size: 1.15rem; }
.ef-cms__card p { margin: 0; color: var(--ef-muted); line-height: 1.65; }
.ef-cms__card p + p { margin-top: 7px; }
.ef-cms__card a:not(.ef-cms__btn) { color: var(--ef-blue); font-weight: 700; }
.ef-cms__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 12px 20px; color: var(--ef-white) !important; background: var(--ef-blue); border-radius: 10px; font-weight: 800; text-decoration: none !important; }
.ef-cms__btn:hover, .ef-cms__btn:focus { color: #173b0a !important; background: var(--ef-green); }
.ef-cms__btn--green { color: #173b0a !important; background: var(--ef-green); }
.ef-cms__btn--green:hover, .ef-cms__btn--green:focus { color: var(--ef-white) !important; background: var(--ef-blue); }
.ef-cms__band { margin-top: 28px; padding: 28px; background: #eef5e8; border-left: 6px solid var(--ef-green); border-radius: 0 16px 16px 0; }
.ef-cms__band h3 { margin: 0 0 8px; color: var(--ef-blue-deep); }
.ef-cms__band p { margin: 0; color: var(--ef-muted); line-height: 1.65; }

@media (max-width: 767.98px) {
  .ef-cms { margin-bottom: 32px; }
  .ef-cms__hero { border-radius: 14px; }
  .ef-cms__grid, .ef-cms__grid--two { grid-template-columns: 1fr; }
  .ef-cms__card { padding: 22px; }
}

/* Product cards */
.product-miniature { height: 100%; }
.product-miniature__inner { height: 100%; border: 1px solid var(--ef-border); border-radius: 13px; background: var(--ef-white); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-miniature__inner:hover { border-color: #c4d4e6; box-shadow: 0 15px 36px rgba(17,49,95,.1); transform: translateY(-4px); }
.product-miniature__top { background: #f8fafc; }
.product-miniature__bottom { padding: 18px; }
.product-miniature__title { color: var(--ef-ink); font-weight: 700; line-height: 1.42; }
.ef-product-reference { color: var(--ef-muted); font-size: .75rem; margin-top: 9px; }
.ef-stock { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: .76rem; font-weight: 700; }
.ef-stock span { width: 8px; height: 8px; border-radius: 50%; }
.ef-stock--available { color: #2f8421; }
.ef-stock--available span { background: var(--ef-green); box-shadow: 0 0 0 4px rgba(115,201,45,.14); }
.ef-stock--unavailable { color: #9b6b13; }
.ef-stock--unavailable span { background: #e6a82b; }
.product-miniature__price { color: var(--ef-blue); font-size: 1.22rem; font-weight: 800; }
.product-miniature__actions { margin-top: 14px; }
.ef-product-column-label, .ef-product-quantity > label { display: none; }
.ef-product-price-cell { margin-top: 10px; }
.ef-login-price { color: var(--ef-blue); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.product-miniature__form { display: flex; align-items: flex-end; gap: 9px; }
.product-miniature__add.btn-primary { background: var(--ef-green); border-color: var(--ef-green); color: #173b0a; }
.product-miniature__add.btn-primary:hover { background: var(--ef-green-dark); border-color: var(--ef-green-dark); color: #fff; }

/* B2B product list: compact rows on catalog/search pages */
body:not(#index) #js-product-list .products { display: flex !important; flex-direction: column; gap: 10px; }
body:not(#index) #js-product-list .product-miniature { width: 100%; height: auto; }
body:not(#index) #js-product-list .product-miniature__inner {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 128px;
  border-radius: 9px;
  overflow: hidden;
}
body:not(#index) #js-product-list .product-miniature__inner:hover { transform: none; box-shadow: 0 8px 22px rgba(17,49,95,.09); }
body:not(#index) #js-product-list .product-miniature__top { position: relative; width: 112px; height: 128px; padding: 8px; border-right: 1px solid var(--ef-border); }
body:not(#index) #js-product-list .product-miniature__image-container,
body:not(#index) #js-product-list .product-miniature__image-link,
body:not(#index) #js-product-list .product-miniature__image-link picture { display: block; width: 100%; height: 100%; }
body:not(#index) #js-product-list .product-miniature__image { width: 100%; height: 100%; object-fit: contain; }
body:not(#index) #js-product-list .product-miniature__quickview-button,
body:not(#index) #js-product-list .product-miniature__quickview-touch { display: none !important; }
body:not(#index) #js-product-list .product-flags { transform: scale(.78); transform-origin: top left; }
body:not(#index) #js-product-list .product-miniature__bottom {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) 120px 105px minmax(185px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 15px;
}
body:not(#index) #js-product-list .product-miniature__infos { min-width: 0; }
body:not(#index) #js-product-list .product-miniature__title { display: block; font-size: .92rem; line-height: 1.32; }
body:not(#index) #js-product-list .ef-product-reference { margin-top: 5px; }
body:not(#index) #js-product-list .ef-product-availability,
body:not(#index) #js-product-list .ef-product-price-cell { min-width: 0; margin: 0; }
body:not(#index) #js-product-list .ef-product-column-label,
body:not(#index) #js-product-list .ef-product-quantity > label {
  display: block;
  margin-bottom: 5px;
  color: var(--ef-muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
body:not(#index) #js-product-list .ef-stock { margin: 0; font-size: .72rem; line-height: 1.3; }
body:not(#index) #js-product-list .product-miniature__prices { margin: 0; }
body:not(#index) #js-product-list .product-miniature__price { font-size: 1.05rem; line-height: 1.2; }
body:not(#index) #js-product-list .product-miniature__actions { margin: 0; }
body:not(#index) #js-product-list .product-miniature__form { justify-content: flex-end; }
body:not(#index) #js-product-list .ef-product-quantity { width: 72px; flex: 0 0 72px; }
body:not(#index) #js-product-list .ef-product-quantity .quantity-button { width: 72px; min-width: 72px; }
body:not(#index) #js-product-list .ef-product-quantity input[name='qty'] { width: 72px; min-width: 0; }
body:not(#index) #js-product-list .product-miniature__add {
  width: auto !important;
  min-width: 104px;
  padding: 0 12px;
  gap: 6px;
  white-space: nowrap;
}
body:not(#index) #js-product-list .product-miniature__add-text { display: inline !important; }
body:not(#index) #js-product-list .product-miniature__details { white-space: nowrap; }

@media (max-width: 1199.98px) {
  body:not(#index) #js-product-list .product-miniature__bottom { grid-template-columns: minmax(0,1fr) minmax(180px,auto); }
  body:not(#index) #js-product-list .product-miniature__infos { grid-column: 1; grid-row: 1; }
  body:not(#index) #js-product-list .ef-product-availability { grid-column: 1; grid-row: 2; }
  body:not(#index) #js-product-list .ef-product-price-cell { grid-column: 1; grid-row: 3; }
  body:not(#index) #js-product-list .product-miniature__actions { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}

/* Footer */
.ef-footer-intro { background: #f2f6fb; border-top: 1px solid var(--ef-border); }
.ef-footer-intro__inner { min-height: 155px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 50px; }
.ef-footer-brand img { max-width: 190px; max-height: 65px; width: auto; height: auto; }
.ef-footer-brand p { margin: 9px 0 0; color: var(--ef-muted); font-style: italic; }
.ef-footer-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ef-footer-promise > div { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--ef-white); border: 1px solid var(--ef-border); border-radius: 10px; }
.ef-footer-promise i { color: var(--ef-green-dark); font-size: 30px; }
.ef-footer-promise span { display: flex; flex-direction: column; color: var(--ef-muted); font-size: .78rem; }
.ef-footer-promise strong { color: var(--ef-ink); font-size: .9rem; }
.ef-footer-main { background: var(--ef-blue-deep); color: rgba(255,255,255,.72); }
.ef-footer-main h3, .ef-footer-main h4, .ef-footer-main .h3, .ef-footer-main .h4 { color: var(--ef-white); }
.ef-footer-main a { color: rgba(255,255,255,.75); }
.ef-footer-main a:hover { color: var(--ef-green); }

@media (max-width: 991.98px) {
  .ef-header-main__inner { grid-template-columns: 165px minmax(250px, 1fr) auto; min-height: 90px; gap: 18px; }
  .ef-header-main__logo img { max-width: 150px; }
  .ef-search-label { display: none; }
  .ef-hero { min-height: 500px; }
  .ef-hero__module figcaption.caption, .ef-hero__module .carousel-caption { left: 4vw; width: min(600px, 62vw); }
  .ef-hero__grid { min-height: 500px; padding-top: 55px; padding-bottom: 55px; }
  .ef-hero__copy { width: 64%; }
  .ef-benefits__grid { grid-template-columns: repeat(2,1fr); }
  .ef-categories__grid { grid-template-columns: repeat(2,1fr); }
  .ef-partner__inner { grid-template-columns: 1fr; gap: 30px; }
  .ef-footer-intro__inner { grid-template-columns: 1fr; padding-top: 35px; padding-bottom: 35px; }
}

@media (max-width: 767.98px) {
  .ef-header-main__inner { grid-template-columns: 1fr auto auto; min-height: 78px; }
  .ef-header-main__logo img { max-width: 145px; max-height: 55px; }
  .ef-header-main__actions { grid-column: auto; }
  .ef-header-main__search { display: flex; align-items: center; }
  .ef-mainmenu .container-md { min-height: 48px; }
  .ef-hero { min-height: 500px; background-position: 68% center; }
  .ef-hero--fallback::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 62%, rgba(255,255,255,.72) 100%); }
  .ef-hero__module img { object-position: 66% center; }
  .ef-hero__module figcaption.caption, .ef-hero__module .carousel-caption { top: auto; right: 18px; bottom: 45px; left: 18px; width: auto; padding: 20px 22px; transform: none; border-left-width: 5px; border-radius: 0 14px 14px 0; }
  .ef-hero__module figcaption h2, .ef-hero__module figcaption .display-1, .ef-hero__module .carousel-caption h2 { margin-bottom: 9px; font-size: 1.8rem; }
  .ef-hero__module .caption-description, .ef-hero__module .caption-description p { font-size: .92rem; line-height: 1.45; }
  .ef-hero__module .carousel-control-prev, .ef-hero__module .carousel-control-next { display: none !important; }
  .ef-hero__grid { min-height: 520px; padding-top: 43px; padding-bottom: 43px; }
  .ef-hero__copy { width: 100%; }
  .ef-hero h1 { font-size: 2.45rem; }
  .ef-hero__copy > p { font-size: .96rem; }
  .ef-hero__buttons { flex-direction: column; }
  .ef-hero__buttons .btn { width: 100%; }
  .ef-benefits__grid { grid-template-columns: 1fr; }
  .ef-benefits__grid > div { min-height: 88px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .ef-section { padding: 58px 0; }
  .ef-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .ef-categories__grid { grid-template-columns: 1fr; }
  .ef-category { min-height: 145px; grid-template-columns: 74px 1fr; padding: 20px; }
  .ef-category__icon { width: 70px; height: 70px; }
  .ef-category__icon i { font-size: 32px; }
  #category .ef-subcategories__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  #category .ef-subcategory-button { grid-template-rows: 120px minmax(52px,auto); min-height: 172px; }
  #category .ef-subcategory-button__image { height: 120px; padding: 6px; }
  #category .ef-subcategory-button__name { padding: 9px 34px 9px 10px !important; font-size: .74rem !important; }
  #category .ef-subcategory-button__arrow { right: 8px; bottom: 12px; width: 22px; height: 22px; }
  body:not(#index) #js-product-list .product-miniature__inner { grid-template-columns: 88px minmax(0,1fr); min-height: 112px; }
  body:not(#index) #js-product-list .product-miniature__top { width: 88px; height: 112px; padding: 6px; }
  body:not(#index) #js-product-list .product-miniature__bottom { display: block; padding: 12px; }
  body:not(#index) #js-product-list .ef-product-availability,
  body:not(#index) #js-product-list .ef-product-price-cell,
  body:not(#index) #js-product-list .product-miniature__actions { margin-top: 10px; }
  body:not(#index) #js-product-list .product-miniature__form { justify-content: flex-start; flex-wrap: wrap; }
  body:not(#index) #js-product-list .product-miniature__add { min-width: 98px; }
  .ef-home-products, .ef-brands, .ef-partner { padding: 58px 0; }
  .ef-partner { min-height: 480px; background-position: 68% center; }
  .ef-partner__module img { object-position: 72% 45%; }
  .ef-partner::after { background: linear-gradient(90deg, rgba(7,35,79,.76) 0%, rgba(7,35,79,.58) 54%, rgba(7,35,79,.18) 100%); }
  .ef-brands__grid { grid-template-columns: repeat(2,1fr); }
  .ef-brands__grid a { min-height: 92px; padding: 16px; }
  .ef-brands__grid img { max-width: 132px; max-height: 42px; }
  .ef-brands__grid .ef-brand-logo--tall { max-height: 58px; }
  .ef-footer-promise { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Product detail: compact B2B layout with a fully visible image */
#product .product__container {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-bottom: 52px;
  margin-left: auto;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
#product .product__left,
#product .product__images {
  width: 100%;
  min-width: 0;
  height: auto;
}
#product .product__carousel {
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(17,49,95,.09);
}
#product .product__carousel .carousel-inner,
#product .product__carousel .carousel-item,
#product .product__carousel picture {
  display: block;
  width: 100%;
  height: 100% !important;
}
#product .product__carousel .carousel-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}
#product .product__thumbnails { margin-top: 13px; }
#product .product__thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
}
#product .product__thumbnail {
  width: 72px;
  height: 72px;
  padding: 4px;
  overflow: hidden;
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 10px;
}
#product .product__thumbnail.active,
#product .product__thumbnail:hover,
#product .product__thumbnail:focus {
  border-color: var(--ef-green);
  box-shadow: 0 0 0 3px rgba(115,201,45,.13);
}
#product .product__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#product .product__right {
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0;
  padding: clamp(25px, 3vw, 36px);
  background: var(--ef-white);
  border: 1px solid var(--ef-border);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(17,49,95,.09);
}
#product .product__name {
  margin-bottom: 10px !important;
  color: var(--ef-blue-deep);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
#product .product__manufacturer { margin-bottom: 22px; }
#product .product__manufacturer a { color: var(--ef-blue); font-weight: 800; }
#product .product__description-short { color: var(--ef-muted); line-height: 1.65; }
#product .product__actions { margin-top: 20px; }
#product .product-prices,
#product .product__prices { margin-bottom: 18px; }
#product .product-add-to-cart,
#product .product__add-to-cart { padding-top: 18px; border-top: 1px solid var(--ef-border); }
#product .product__additional-info { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ef-border); }

@media (min-width: 992px) {
  #product .product__right { position: sticky; top: 24px; }
}

@media (max-width: 991.98px) {
  #product .product__container {
    max-width: 640px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #product .product__carousel { max-width: 520px; margin-right: auto; margin-left: auto; }
  #product .product__thumbnails-list { justify-content: center; }
}

@media (max-width: 575.98px) {
  #product .product__container { gap: 22px; margin-bottom: 36px; }
  #product .product__carousel { max-width: 390px; border-radius: 13px; }
  #product .product__right { padding: 22px 18px; border-radius: 13px; }
  #product .product__thumbnail { width: 62px; height: 62px; }
}
