/*
 * Marino Ricambi theme layer.
 * Loaded by PrestaShop after classic's theme.css (priority 1000), so it only
 * needs to override what classic sets. Tokens first, then one block per area.
 */

:root {
  --mr-yellow: #FED700;
  --mr-yellow-dark: #E5C100;
  --mr-navy: #16253A;
  --mr-navy-2: #22354D;
  --mr-navy-3: #0F1B2B;
  --mr-steel: #E7EAED;
  --mr-steel-2: #D5DAE0;
  --mr-line: #C2C9D1;
  --mr-white: #FFFFFF;
  --mr-text: #16253A;
  --mr-text-2: #56626F;
  --mr-green: #1F7A4D;
  --mr-amber: #A35C00;
  --mr-red: #B3261E;
  --mr-radius: 4px;
  --mr-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

body {
  font-family: var(--mr-font);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mr-text);
  background: var(--mr-white);
}

#wrapper {
  background: var(--mr-white);
  padding-top: 0;
  box-shadow: none;
}

.container {
  max-width: 1272px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--mr-font);
  color: var(--mr-text);
  text-transform: none;
}

p { color: inherit; }
a { color: inherit; }
a:hover, a:focus { color: inherit; }
:focus-visible { outline: 3px solid var(--mr-yellow); outline-offset: 2px; }

.mr-code {
  font-variation-settings: "wdth" 85;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .01em;
}

.mr-price {
  font-variation-settings: "wdth" 85;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* full-width band inside the boxed content column */
.mr-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body { overflow-x: hidden; }

.mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--mr-radius);
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.mr-btn--yellow { background: var(--mr-yellow); color: var(--mr-navy); }
.mr-btn--yellow:hover, .mr-btn--yellow:focus { background: var(--mr-yellow-dark); color: var(--mr-navy); text-decoration: none; }
.mr-btn--outline { border-color: #4A5F7A; color: var(--mr-white); }
.mr-btn--outline:hover, .mr-btn--outline:focus { border-color: var(--mr-yellow); color: var(--mr-white); text-decoration: none; }

.mr-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mr-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mr-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.mr-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mr-stock.is-ok { color: var(--mr-green); }
.mr-stock.is-last { color: var(--mr-amber); }
.mr-stock.is-out { color: var(--mr-red); }

/* ---------- Icons ---------- */

.mr-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Promo bar + header ---------- */

#header { background: var(--mr-navy); color: var(--mr-white); box-shadow: none; }
#header a { color: inherit; text-decoration: none; }
#header .header-banner { background: transparent; }

.mr-promo { background: var(--mr-yellow); color: var(--mr-navy); font-size: 14px; font-weight: 600; }
.mr-promo__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
#header .mr-promo a { color: var(--mr-navy); }
.mr-promo__tel strong { font-weight: 800; }

.mr-header__in {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mr-brand { display: flex; align-items: center; gap: 12px; }
.mr-brand img { width: 58px; height: 58px; border-radius: 50%; }
.mr-brand__name {
  margin: 0;
  color: var(--mr-white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  font-variation-settings: "wdth" 75;
}
.mr-brand__name small { display: block; font-size: 13px; font-weight: 500; color: #AFBBC8; font-variation-settings: "wdth" 90; }

.mr-search form { display: flex; align-items: center; background: var(--mr-white); border-radius: var(--mr-radius); overflow: hidden; }
.mr-search form:focus-within { outline: 3px solid var(--mr-yellow); }
.mr-search .mr-icon { margin-left: 14px; color: var(--mr-text-2); }
.mr-search input[type=text] { flex: 1; min-width: 0; padding: 14px 12px; border: 0; background: transparent; color: var(--mr-text); font-size: 16px; }
.mr-search input[type=text]:focus { outline: none; }
.mr-search input::placeholder { color: #5F6B78; }
.mr-search button { align-self: stretch; padding: 0 22px; border: 0; background: var(--mr-yellow); color: var(--mr-navy); font-weight: 700; cursor: pointer; }
.mr-search button:hover { background: var(--mr-yellow-dark); }
.ui-autocomplete.searchbar-autocomplete { border: 1px solid var(--mr-line); border-top: 3px solid var(--mr-yellow); font-family: var(--mr-font); }
.ui-autocomplete.searchbar-autocomplete li a { padding: 8px 12px; }
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus { background: var(--mr-steel); }

.mr-actions { display: flex; align-items: center; gap: 4px; }
.mr-actions a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: var(--mr-radius);
  color: #C9D2DC;
  font-size: 12px;
  white-space: nowrap;
}
#header .mr-actions a:hover { background: var(--mr-navy-2); color: var(--mr-white); }
.mr-actions .mr-icon { width: 24px; height: 24px; color: var(--mr-white); }
.mr-actions .user-info { display: block; }
.mr-cart__count {
  position: absolute;
  top: 0;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mr-yellow);
  color: var(--mr-navy);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- Catalogue bar + "Tutti i ricambi" panel ---------- */

.mr-nav { position: relative; z-index: 40; background: var(--mr-navy-2); }
.mr-nav__in { display: flex; align-items: stretch; gap: 8px; }
.mr-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 8px 8px 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--mr-radius);
  background: var(--mr-yellow);
  color: var(--mr-navy);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  font-variation-settings: "wdth" 80;
}
.mr-all:hover,
.mr-all[aria-expanded=true] { background: var(--mr-yellow-dark); }
.mr-nav__vehicles { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mr-nav__vehicles a {
  display: block;
  padding: 15px 14px;
  border-bottom: 3px solid transparent;
  color: var(--mr-white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  font-variation-settings: "wdth" 75;
}
#header .mr-nav__vehicles a:hover,
.mr-nav__vehicles a[aria-current] { border-bottom-color: var(--mr-yellow); }
.mr-nav__extra { display: flex; margin-left: auto; }
.mr-nav__extra a { display: flex; align-items: center; padding: 0 14px; color: #D7DEE6; font-weight: 600; white-space: nowrap; }
#header .mr-nav__extra a:hover { color: var(--mr-white); }
#header .mr-nav__extra a.is-offers { color: var(--mr-yellow); }

.mr-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  background: var(--mr-white);
  color: var(--mr-text);
  border-top: 3px solid var(--mr-yellow);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .22);
}
.mr-mega.is-open { visibility: visible; opacity: 1; }
.mr-mega__in { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 20px; padding-bottom: 24px; }

#header .mr-mega__tabs { display: flex; flex-direction: column; gap: 2px; padding-right: 20px; border-right: 1px solid var(--mr-steel-2); }
#header .mr-mega__tab {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--mr-text);
  text-decoration: none;
  transition: background .15s ease;
}
#header .mr-mega__tab:hover,
#header .mr-mega__tab.is-active { background: var(--mr-steel); }
.mr-mega__icon {
  width: 44px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.mr-mega__tab.is-active .mr-mega__icon { transform: translateX(3px); }
.mr-mega__tab-name { font-size: 17px; font-weight: 800; letter-spacing: .03em; font-variation-settings: "wdth" 72; }
.mr-mega__tab.is-active .mr-mega__tab-name { justify-self: start; padding: 0 8px; background: var(--mr-yellow); box-shadow: 0 0 0 2px #8C97A3; }
.mr-mega__tab-count { color: var(--mr-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

.mr-mega__panel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; min-height: 340px; }
.mr-mega__panel[hidden] { display: none; }
.mr-mega__heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 12px;
  font-size: 22px;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
}
.mr-mega__heading span { color: var(--mr-text-2); font-size: 14px; font-weight: 400; font-variation-settings: "wdth" 100; }
.mr-mega__groups { max-height: min(56vh, 460px); overflow-y: auto; columns: 3; column-gap: 24px; padding-right: 8px; scrollbar-width: thin; }
#header .mr-mega__groups a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 4px;
  color: var(--mr-text);
  font-size: 15px;
  text-decoration: none;
  break-inside: avoid;
  transition: background .12s ease;
}
#header .mr-mega__groups a span { color: var(--mr-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
#header .mr-mega__groups a:hover { background: var(--mr-yellow); text-decoration: none; }
#header .mr-mega__groups a:hover span { color: var(--mr-text); }

#header .mr-mega__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mr-navy);
  color: var(--mr-white);
  text-decoration: none;
  transition: transform .25s ease;
}
#header .mr-mega__aside:hover { transform: translateY(-3px); }
.mr-mega__aside img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .5s ease; }
#header .mr-mega__aside:hover img { transform: scale(1.04); }
.mr-mega__aside-icon {
  width: 100%;
  height: 160px;
  padding: 32px;
  background: var(--mr-navy-2);
  fill: none;
  stroke: var(--mr-yellow);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mr-mega__aside-text { display: grid; gap: 2px; padding: 16px 18px 20px; }
.mr-mega__aside-text b { font-size: 20px; line-height: 1.1; font-variation-settings: "wdth" 75; }
.mr-mega__aside-text span { color: #C9D2DC; font-size: 14px; }
.mr-mega__aside-go {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mr-yellow);
  color: var(--mr-navy);
  transition: transform .25s ease;
}
#header .mr-mega__aside:hover .mr-mega__aside-go { transform: translateX(4px); }

/* the bar item whose panel is open */
#header .mr-nav__vehicles a.is-previewed { border-bottom-color: var(--mr-yellow); }

/* ---------- Home: hero slider ---------- */

#index #wrapper .container > .row { margin: 0; }
#index #content-wrapper { padding: 0; }
#index .page-home { margin: 0; }

.mr-hero { position: relative; background: var(--mr-navy); color: var(--mr-white); overflow: hidden; }
.mr-hero__slides { position: relative; height: 470px; }
.mr-slide { position: absolute; inset: 0; visibility: hidden; }
.mr-slide.is-on { visibility: visible; }
.mr-slide__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  height: 100%;
  padding-bottom: 48px;
}
.mr-slide__text { max-width: 560px; }
.mr-slide__kicker { margin: 0 0 12px; color: var(--mr-yellow); font-weight: 700; font-variation-settings: "wdth" 85; }
.mr-slide__title {
  margin: 0 0 16px;
  color: var(--mr-white);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 68;
}
.mr-slide__sub { margin: 0 0 24px; max-width: 46ch; color: #C9D2DC; font-size: 18px; }
.mr-slide__sub p { margin: 0; color: inherit; }
.mr-slide__hint { margin: 10px 0 0; color: #AFBBC8; font-size: 14px; }
.mr-slide__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.mr-slide.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(22, 37, 58, .96) 0%, rgba(22, 37, 58, .85) 38%, rgba(22, 37, 58, .1) 75%);
}
.mr-hero-search { display: flex; max-width: 520px; background: var(--mr-white); border-radius: var(--mr-radius); overflow: hidden; }
.mr-hero-search:focus-within { outline: 3px solid var(--mr-yellow); }
.mr-hero-search input[type=text] { flex: 1; min-width: 0; padding: 16px; border: 0; color: var(--mr-text); font-size: 17px; }
.mr-hero-search input[type=text]:focus { outline: none; }
.mr-hero-search button { padding: 0 22px; border: 0; background: var(--mr-yellow); color: var(--mr-navy); font-weight: 800; cursor: pointer; }
.mr-slide__visual { position: relative; height: 100%; display: grid; place-items: center; }
#mr-gear { display: block; width: 100%; height: 100%; }
.mr-gear-fallback { display: none; width: 240px; height: 240px; border-radius: 50%; }
.mr-no-webgl #mr-gear { display: none; }
.mr-no-webgl .mr-gear-fallback { display: block; }

.mr-hero__ctrl { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.mr-hero__dots { display: flex; gap: 8px; margin-right: 12px; }
.mr-hero__dots button { position: relative; width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #3A4E68; overflow: hidden; cursor: pointer; }
.mr-hero__dots button i { position: absolute; inset: 0; background: var(--mr-yellow); transform: scaleX(0); transform-origin: left; }
.mr-hero__dots button[aria-current=true] i { transform: scaleX(1); }
.mr-hero__ctrl [data-mr-slide] { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #3A4E68; border-radius: 50%; background: transparent; color: var(--mr-white); cursor: pointer; }
.mr-hero__ctrl [data-mr-slide]:hover { border-color: var(--mr-yellow); }
.mr-hero.is-single .mr-hero__ctrl { display: none; }

/* guarantees under the hero on the home page (blockreassurance) */
#index .page-home > .mr-garanzie { border-top: 0; }
#index .page-home > .mr-garanzie .mr-garanzie__item { display: flex; align-items: center; gap: 14px; }
#index .mr-footer-before .mr-garanzie { display: none; }

/* ---------- Home: sections ---------- */

.mr-section { padding: 56px 0 0; }
.page-home > .mr-section:last-child { padding-bottom: 56px; }
.mr-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.mr-section__head h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  font-variation-settings: "wdth" 75;
}
.mr-section__head p { margin: 0; color: var(--mr-text-2); }

/* vehicle selector: a row of vehicles, the chosen one opens its groups */
.mr-picker__tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.mr-picker__tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 8px 12px;
  border: 1px solid var(--mr-line);
  border-radius: 6px 6px 0 0;
  border-bottom: 0;
  background: var(--mr-white);
  color: var(--mr-text);
  cursor: pointer;
  transition: background .2s ease;
}
.mr-picker__tab:hover { background: var(--mr-steel); }
.mr-picker__tab[aria-selected=true] { background: var(--mr-steel); border-color: var(--mr-steel); }
/* the selected tab flows into the panel below */
.mr-picker__tab[aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--mr-steel); }
.mr-picker__icon {
  width: 56px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.mr-picker__tab:hover .mr-picker__icon { transform: translateX(3px); }
.mr-picker__name { font-size: 18px; font-weight: 800; letter-spacing: .03em; font-variation-settings: "wdth" 72; }
.mr-picker__tab[aria-selected=true] .mr-picker__name { padding: 0 8px; background: var(--mr-yellow); box-shadow: 0 0 0 2px #8C97A3; }
.mr-picker__count { color: var(--mr-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

.mr-picker__panel {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 260px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  background: var(--mr-steel);
}
.mr-picker__panel[hidden] { display: none; }
.mr-picker__panel.has-photo { grid-template-columns: 1.5fr 1fr; }
.mr-picker__body { padding: 24px 28px 28px; }
.mr-picker__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mr-picker__title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.1; font-variation-settings: "wdth" 72; }
.mr-picker__head .mr-btn .mr-icon { width: 18px; height: 18px; }
.mr-picker__groups { columns: 3; column-gap: 28px; }
.mr-picker__panel.has-photo .mr-picker__groups { columns: 2; }
.mr-picker__groups a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mr-line);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  break-inside: avoid;
  font-variation-settings: "wdth" 88;
}
.mr-picker__groups a span { color: var(--mr-text-2); font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }
.mr-picker__groups a:hover { color: var(--mr-text); text-decoration: underline; text-decoration-color: var(--mr-yellow); text-decoration-thickness: 2px; }
.mr-picker__photo { width: 100%; height: 100%; object-fit: cover; }

/* carousels: home "Pronti a magazzino" and product page related */
.mr-carousel__nav { display: flex; align-items: center; gap: 6px; }
.mr-carousel__nav .mr-link { margin-right: 10px; }
.mr-carousel__nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--mr-line); border-radius: 50%; background: var(--mr-white); cursor: pointer; }
.mr-carousel__nav button:hover { border-color: var(--mr-text); }
.mr-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.mr-carousel__track::-webkit-scrollbar { display: none; }

.mr-gtiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mr-gtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 6px; background: var(--mr-steel); text-decoration: none; }
.mr-gtile:hover { text-decoration: none; }
.mr-gtile__photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 6px; overflow: hidden; border-radius: 4px; }
.mr-gtile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mr-gtile__photo img.is-part { object-fit: contain; mix-blend-mode: multiply; }
.mr-gtile:hover .mr-gtile__photo img { transform: scale(1.05); }
.mr-gtile b { font-size: 17px; font-variation-settings: "wdth" 80; }
.mr-gtile span:last-child { color: var(--mr-text-2); font-size: 13px; }

.mr-banners { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mr-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 32px;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
}
.mr-banner:hover { text-decoration: none; }
.mr-banner__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 46%; }
.mr-banner__text b { margin-bottom: 8px; font-size: 38px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 70; }
.mr-banner__text > span:not(.mr-btn) { margin-bottom: 18px; max-width: 40ch; }
.mr-banner.is-brand { background: var(--mr-yellow); color: var(--mr-navy); }
.mr-banner.is-dark { background: var(--mr-navy); color: var(--mr-white); }
.mr-banner.is-dark .mr-banner__text { max-width: none; }
.mr-banner.is-dark .mr-banner__text > span:not(.mr-btn) { color: #C9D2DC; }
.mr-banner__parts {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}
.mr-banner__parts img { width: 100%; height: 100%; min-height: 0; padding: 6px; border-radius: 4px; background: var(--mr-white); object-fit: contain; }
.mr-btn--navy { background: var(--mr-navy); color: var(--mr-white); }

.mr-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-brands a { padding: 10px 16px; border: 1px solid var(--mr-line); border-radius: 999px; font-weight: 700; text-decoration: none; font-variation-settings: "wdth" 80; }
.mr-brands a span { margin-left: 6px; color: var(--mr-text-2); font-size: 13px; font-weight: 400; }
.mr-brands a:hover { border-color: var(--mr-text); background: var(--mr-steel); text-decoration: none; }

/* ---------- Compact cards (carousels, 8 per row) ---------- */

.mr-carousel.is-mini .mr-carousel__track { grid-auto-columns: calc((100% - 7 * 10px) / 8); gap: 10px; }
.mr-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  background: var(--mr-white);
  scroll-snap-align: start;
  transition: border-color .2s ease, transform .2s ease;
}
.mr-mini:hover { border-color: var(--mr-text-2); transform: translateY(-2px); }
.mr-mini__photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 4px; overflow: hidden; }
.mr-mini__photo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.15); }
.mr-mini__name {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-variation-settings: "wdth" 85;
}
.mr-mini__name a { text-decoration: none; }
.mr-mini__code { color: var(--mr-text-2); font-size: 12px; font-weight: 500; }
.mr-mini__foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.mr-mini__foot .mr-price { font-size: 16px; }

.mr-buy-icon button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--mr-radius);
  background: var(--mr-yellow);
  color: var(--mr-navy);
  font-weight: 700;
  cursor: pointer;
}
.mr-buy-icon button:hover { background: var(--mr-yellow-dark); }
.mr-buy-icon .mr-icon { width: 20px; height: 20px; }

/* ---------- "Best seller del momento": bento grid on a navy band ---------- */

/* same language as the showcase below: big title, light under the pointer,
   white cards with the price on a hanging tag */
.mr-bento-band {
  --sx: 30%;
  --sy: 10%;
  margin-top: 56px;
  padding: 56px 0 64px;
  background:
    radial-gradient(640px circle at var(--sx) var(--sy), rgba(254, 215, 0, .16), transparent 62%),
    var(--mr-navy);
  color: var(--mr-white);
}
.mr-bento-band__head { margin-bottom: 28px; }
.mr-bento-band__head h2 {
  margin: 0;
  color: var(--mr-white);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 66;
}
.mr-bento-band__head p { margin: 12px 0 0; max-width: 52ch; color: #C9D2DC; font-size: 18px; font-weight: 500; }
.mr-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 16px;
}
.mr-bento__item {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mr-white);
  color: var(--mr-text);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
}
.mr-bento__item.is-xl { grid-column: span 3; grid-row: span 2; grid-template-columns: 1.1fr 1fr; padding: 22px; }
.mr-bento__item.is-tall { grid-row: span 2; grid-template-rows: 1fr auto; }
.mr-bento__item.is-wide { grid-column: span 2; grid-template-columns: 140px 1fr; align-items: center; }
.mr-bento__item.is-sq { grid-template-rows: 1fr auto; gap: 6px; padding: 10px; }
/* photos breathe below the tag */
.mr-bento__photo { display: grid; place-items: center; min-height: 0; padding: 30px 6px 4px; overflow: hidden; border-radius: 4px; }
.mr-bento__item.is-xl .mr-bento__photo { padding: 48px 12px 12px; }
.mr-bento__item.is-sq .mr-bento__photo { padding-top: 34px; }
.mr-bento__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mr-bento__item:hover .mr-bento__photo img { transform: scale(1.06); }
.mr-bento__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-bento__item.is-xl .mr-bento__info { justify-content: center; gap: 8px; }
.mr-bento__brand { color: var(--mr-text-2); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mr-bento__name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; font-variation-settings: "wdth" 80; }
.mr-bento__name a { color: var(--mr-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-bento__name a:hover { text-decoration: underline; }
.mr-bento__item.is-xl .mr-bento__name { font-size: 28px; line-height: 1.1; font-weight: 800; font-variation-settings: "wdth" 72; }
.mr-bento__item.is-xl .mr-bento__name a { -webkit-line-clamp: 4; }
.mr-bento__item.is-sq .mr-bento__name { font-size: 12px; }
.mr-bento__code { color: var(--mr-text-2); font-size: 12px; }
.mr-bento__code .mr-code { color: var(--mr-text); font-weight: 600; }
.mr-bento__foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; }
.mr-bento__item.is-tall .mr-bento__foot { justify-content: stretch; margin-top: 6px; }
.mr-bento__item.is-tall .mr-buy-icon { flex: 1; }
.mr-bento__item.is-tall .mr-buy-icon button { width: 100%; height: 42px; font-size: 15px; }
.mr-bento__item.is-sq .mr-buy-icon button { min-width: 32px; height: 32px; padding: 0 6px; }
.mr-bento__item.is-xl .mr-quick { grid-template-columns: 64px 1fr; margin-top: 10px; }
.mr-bento__item.is-xl .mr-quick__now { grid-column: 1 / -1; }
/* tag sizes follow the card */
.mr-bento__item .mr-tag { top: 14px; left: 14px; }
.mr-bento__item.is-xl .mr-tag { top: 22px; left: 22px; }
.mr-bento__item.is-xl .mr-tag__price { font-size: 44px; }
.mr-bento__item.is-tall .mr-tag__price,
.mr-bento__item.is-wide .mr-tag__price { font-size: 24px; }
.mr-bento__item.is-wide .mr-tag__card,
.mr-bento__item.is-sq .mr-tag__card { min-width: 0; padding: 22px 10px 8px; }
.mr-bento__item.is-sq .mr-tag { top: 10px; left: 10px; }
.mr-bento__item.is-sq .mr-tag__price { font-size: 17px; }
.mr-bento__item.is-sq .mr-tag__off { font-size: 11px; padding: 1px 6px; }

/* ---------- Home: showcase ("Vetrina", mrtheme) ---------- */

/* yellow band between the navy hero and the rest: the one loud block of the page */
.mr-stage {
  --sx: 72%;
  --sy: 20%;
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(640px circle at var(--sx) var(--sy), rgba(255, 255, 255, .45), transparent 62%),
    var(--mr-yellow);
  color: var(--mr-navy);
}
.mr-stage__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.mr-stage__intro h2 {
  margin: 0;
  color: var(--mr-navy);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  font-variation-settings: "wdth" 66;
}
.mr-stage__intro p { margin: 12px 0 0; max-width: 52ch; font-size: 18px; font-weight: 500; }
.mr-stage__clock {
  flex: none;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--mr-navy);
  color: var(--mr-white);
  font-size: 15px;
  white-space: nowrap;
}
.mr-stage__clock b { color: var(--mr-yellow); font-variant-numeric: tabular-nums; }

.mr-stage__grid { display: grid; gap: 16px; }
.mr-stage__grid.is-2 { grid-template-columns: 1fr 1fr; }
.mr-stage__grid.is-3 { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
.mr-stage__grid.is-3 .is-lead { grid-row: span 2; }

.mr-stage__item {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  border-radius: 10px;
  background: var(--mr-white);
  box-shadow: 0 1px 0 rgba(22, 37, 58, .08), 0 18px 40px -24px rgba(22, 37, 58, .55);
}
/* the two smaller cards: photo beside the text */
.mr-stage__grid.is-3 .mr-stage__item:not(.is-lead),
.mr-stage__grid.is-1 .mr-stage__item {
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  grid-template-rows: none;
}
.mr-stage__photo {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.mr-stage__item.is-lead .mr-stage__photo { min-height: 340px; }
.mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-stage__photo,
.mr-stage__grid.is-1 .mr-stage__photo { border-radius: 10px 0 0 10px; }
.mr-stage__photo img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mr-stage__item.is-lead .mr-stage__photo img { max-height: 420px; }
.mr-stage__item:hover .mr-stage__photo img { transform: scale(1.05); }

/* price tag hanging from a string, like the ones on the shop counter */
.mr-tag {
  position: absolute;
  top: 26px;
  right: 22px;
  z-index: 2;
  transform: rotate(-6deg);
  transform-origin: 50% 0;
}
.mr-tag::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 14px);
  left: calc(50% - 1px);
  width: 2px;
  height: 30px;
  background: var(--mr-navy);
  border-radius: 1px;
}
.mr-tag__card {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 112px;
  padding: 26px 16px 12px;
  border-radius: 6px;
  background: var(--mr-navy);
  color: var(--mr-white);
  text-align: center;
  box-shadow: 0 12px 24px -10px rgba(15, 27, 43, .6);
  -webkit-mask: radial-gradient(circle 5px at 50% 12px, transparent 96%, #000 100%);
  mask: radial-gradient(circle 5px at 50% 12px, transparent 96%, #000 100%);
}
.mr-tag__price {
  color: var(--mr-yellow);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 75;
  white-space: nowrap;
}
.mr-stage__item.is-lead .mr-tag__price { font-size: 46px; }
.mr-tag__was { color: #AFBBC8; font-size: 14px; }
.mr-tag__off {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mr-yellow);
  color: var(--mr-navy);
  font-size: 13px;
  font-weight: 800;
}
.mr-tag.is-left { right: auto; left: 18px; transform: rotate(6deg); }
.mr-stage__item:hover .mr-tag,
.mr-bento__item:hover .mr-tag { animation: mr-tag-swing 1s ease-out; }
.mr-bento__item:hover .mr-tag.is-left { animation-name: mr-tag-swing-left; }
@keyframes mr-tag-swing-left {
  0% { transform: rotate(6deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(6deg); }
}
@keyframes mr-tag-swing {
  0% { transform: rotate(-6deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(-3deg); }
  100% { transform: rotate(-6deg); }
}

.mr-stage__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 4px 24px 24px;
}
.mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-stage__info,
.mr-stage__grid.is-1 .mr-stage__info { justify-content: flex-end; padding: 96px 22px 22px 8px; }
.mr-stage__brand { color: var(--mr-text-2); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mr-stage__name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  font-variation-settings: "wdth" 80;
}
.mr-stage__item.is-lead .mr-stage__name { font-size: 26px; }
.mr-stage__name a { color: var(--mr-text); text-decoration: none; }
.mr-stage__name a:hover { text-decoration: underline; }
.mr-stage__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; color: var(--mr-text-2); font-size: 14px; }
.mr-stage__meta .mr-code { color: var(--mr-text); font-weight: 600; }
.mr-quick { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 8px; margin-top: 8px; }
.mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-quick { grid-template-columns: 56px 1fr; }
.mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-quick__now { grid-column: 1 / -1; }
.mr-quick .mr-qty { width: auto; font-size: 16px; }
.mr-quick .mr-btn { padding: 13px 14px; font-size: 16px; }
.mr-quick__now { background: var(--mr-navy); color: var(--mr-white); }
.mr-quick__now:hover, .mr-quick__now:focus { background: var(--mr-navy-2); color: var(--mr-white); text-decoration: none; }
.mr-quick__now[aria-busy="true"] { opacity: .7; cursor: progress; }

@media (max-width: 900px) {
  .mr-stage__grid.is-2,
  .mr-stage__grid.is-3 { grid-template-columns: 1fr; }
  .mr-stage__grid.is-3 .is-lead { grid-row: auto; }
}
@media (max-width: 767px) {
  .mr-stage { padding: 40px 0 44px; }
  .mr-stage__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mr-stage__intro p { font-size: 16px; }
  .mr-stage__grid .mr-stage__item,
  .mr-stage__grid.is-3 .mr-stage__item:not(.is-lead),
  .mr-stage__grid.is-1 .mr-stage__item { grid-template-columns: none; grid-template-rows: auto auto; }
  .mr-stage__grid .mr-stage__photo,
  .mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-stage__photo,
  .mr-stage__grid.is-1 .mr-stage__photo { min-height: 240px; border-radius: 10px 10px 0 0; }
  .mr-stage__photo img,
  .mr-stage__item.is-lead .mr-stage__photo img { max-height: 260px; }
  .mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-stage__info,
  .mr-stage__grid.is-1 .mr-stage__info,
  .mr-stage__info { padding: 0 18px 18px; }
  .mr-stage__item.is-lead .mr-stage__name { font-size: 21px; }
  .mr-tag { top: 20px; right: 14px; }
  .mr-tag__price,
  .mr-stage__item.is-lead .mr-tag__price { font-size: 30px; }
  .mr-quick,
  .mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-quick { grid-template-columns: 64px 1fr; }
  .mr-quick__now,
  .mr-stage__grid.is-3 .mr-stage__item:not(.is-lead) .mr-quick__now { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .mr-stage__item:hover .mr-tag,
  .mr-bento__item:hover .mr-tag { animation: none; }
  .mr-stage__photo img { transition: none; }
}

/* ---------- Offers, discounts, empty states ---------- */

.mr-cat-band.is-offers { background: var(--mr-yellow); border-bottom-color: var(--mr-yellow-dark); }
.mr-cat-band.is-offers .breadcrumb li a,
.mr-cat-band.is-offers .breadcrumb li,
.mr-cat-band.is-offers .mr-cat-band__count { color: var(--mr-navy); }
.mr-cat-band.is-offers .breadcrumb li::after { color: rgba(22, 37, 58, .35); }
.mr-cat-band.is-offers h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.01em; }

.mr-off {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--mr-red);
  color: var(--mr-white);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  pointer-events: none;
}
.mr-mini,
.mr-bento__item { position: relative; }
.mr-list .mr-prod .mr-off { top: -4px; left: -4px; font-size: 12px; padding: 2px 6px; }
.mr-prod__price s,
.mr-mini__prices s,
.mr-bento__prices s { display: block; color: var(--mr-text-2); font-size: 13px; font-weight: 400; }
.mr-mini__prices,
.mr-bento__prices { display: flex; flex-direction: column; line-height: 1.1; }
.mr-prod__old { display: block; color: var(--mr-text-2); font-size: 14px; }

/* product page: old price and saving */
.mr-buybox .product-discount { margin-bottom: 4px; }
.mr-buybox .product-discount .regular-price { color: var(--mr-text-2); font-size: 18px; text-decoration: line-through; }
.mr-buybox .current-price .discount {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--mr-red);
  color: var(--mr-white);
  font-size: 15px;
  font-weight: 800;
  vertical-align: middle;
  text-transform: none;
}

.mr-empty { max-width: 640px; padding: 40px 0 64px; }
.mr-empty__title { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.1; font-variation-settings: "wdth" 72; }
.mr-empty p { color: var(--mr-text-2); }
.mr-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mr-btn--line { border-color: var(--mr-line); color: var(--mr-text); }
.mr-btn--line:hover { border-color: var(--mr-text); color: var(--mr-text); text-decoration: none; }

/* full-width listing pages: grid of 4 */
.layout-full-width #js-product-list .mr-items.mr-grid { grid-template-columns: repeat(4, 1fr); }
.layout-full-width #content-wrapper { padding-bottom: 56px; }

/* ---------- Invitations to click ---------- */

/* cards answer the pointer: lift, photo comes closer */
.mr-prod__photo img,
.mr-mini__photo img { transition: transform .35s ease; }
.mr-grid .mr-prod { transition: box-shadow .2s ease, transform .2s ease; }
.mr-grid .mr-prod:hover { position: relative; z-index: 1; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22, 37, 58, .12); }
.mr-grid .mr-prod:hover .mr-prod__photo img { transform: scale(1.06); }
.mr-mini:hover .mr-mini__photo img { transform: scale(1.22); }
.mr-list .mr-prod { transition: background .15s ease; }
.mr-list .mr-prod:hover { background: #F7F8F9; }
.mr-list .mr-prod:hover .mr-prod__photo img { transform: scale(1.08); }
.mr-carousel.is-offers .mr-mini { border-color: #F1D2CF; }

/* buttons give way under the finger */
.mr-btn,
.mr-buy-icon button,
#wrapper .btn-primary { transition: background .15s ease, transform .1s ease; }
.mr-btn:active,
.mr-buy-icon button:active,
#wrapper .btn-primary:active { transform: scale(.96); }
/* confirmation on the button that was used (custom.js) */
.is-added,
.is-added:hover { background: var(--mr-green) !important; color: var(--mr-white) !important; }

@media (prefers-reduced-motion: reduce) {
  .mr-grid .mr-prod:hover { transform: none; }
  .mr-prod__photo img,
  .mr-mini__photo img { transition: none; }
}

/* ---------- Product quick look (hover) ---------- */

.mr-peek {
  position: fixed;
  z-index: 1500;
  width: 340px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  visibility: hidden;
  border: 1px solid var(--mr-line);
  border-radius: 8px;
  background: var(--mr-white);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
  transform-origin: left center;
}
.mr-peek__photo { position: relative; height: 200px; overflow: hidden; background: var(--mr-white); border-bottom: 1px solid var(--mr-steel-2); }
/* absolute, so the photo always fits the frame whatever its proportions */
.mr-peek__photo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
/* compact: for short windows (custom.js decides) */
.mr-peek.is-compact .mr-peek__photo { height: 110px; }
.mr-peek.is-compact .mr-peek__body { gap: 6px; padding: 12px 16px 14px; }
.mr-peek.is-compact .mr-peek__name { font-size: 16px; }
.mr-peek.is-compact .mr-peek__price .mr-price { font-size: 22px; }
.mr-peek.is-compact .mr-buy .mr-btn,
.mr-peek.is-compact .mr-qty { padding-top: 8px; padding-bottom: 8px; }
.mr-peek__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.mr-peek__brand { color: var(--mr-text-2); font-size: 13px; font-weight: 600; }
.mr-peek__name { margin: -6px 0 0; font-size: 18px; font-weight: 800; line-height: 1.15; font-variation-settings: "wdth" 75; }
.mr-peek__facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.mr-peek__facts dt { color: var(--mr-text-2); font-weight: 400; }
.mr-peek__facts dd { margin: 0; }
.mr-peek__price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.mr-peek__price .mr-price { font-size: 28px; line-height: 1; }
.mr-peek__price s { color: var(--mr-text-2); }
.mr-peek__price small { color: var(--mr-text-2); font-size: 12px; }
.mr-peek .mr-buy .mr-btn { padding: 12px; }
.mr-peek__open {
  justify-self: start;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mr-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Fly-to-cart and toast ---------- */

.mr-fly {
  position: fixed;
  z-index: 2000;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 6px;
  background: var(--mr-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.mr-fly img { width: 100%; height: 100%; object-fit: contain; }
.mr-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--mr-radius);
  background: var(--mr-navy);
  color: var(--mr-white);
  transform: translate(-50%, calc(100% + 32px));
  visibility: hidden;
}
.mr-toast a { color: var(--mr-yellow); font-weight: 700; white-space: nowrap; }
.mr-toast .mr-icon { color: var(--mr-yellow); }

/* ---------- Cart drawer: quick look at the cart from any page ---------- */

.mr-drawer { position: fixed; inset: 0; z-index: 1600; }
.mr-drawer[hidden] { display: none; }
.mr-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 43, .55);
  opacity: 0;
  transition: opacity .3s ease;
}
.mr-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 92vw);
  background: var(--mr-white);
  box-shadow: -24px 0 48px -24px rgba(15, 27, 43, .5);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  outline: 0;
}
.mr-drawer.is-open .mr-drawer__scrim { opacity: 1; }
.mr-drawer.is-open .mr-drawer__panel { transform: none; }
.mr-drawer__body { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mr-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--mr-navy);
  color: var(--mr-white);
}
.mr-drawer__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variation-settings: "wdth" 70;
}
.mr-drawer__title span { color: var(--mr-yellow); font-size: 15px; font-weight: 600; font-variation-settings: normal; }
.mr-drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mr-navy-2);
  color: var(--mr-white);
  cursor: pointer;
}
.mr-drawer__close:hover { background: var(--mr-yellow); color: var(--mr-navy); }
.mr-drawer__list { flex: 1; min-height: 0; margin: 0; padding: 4px 20px; overflow-y: auto; list-style: none; }
.mr-drawer__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 32px 16px 0;
  border-bottom: 1px solid var(--mr-steel-2);
  transition: opacity .2s;
}
.mr-drawer__item[aria-busy="true"] { opacity: .45; pointer-events: none; }
/* the product just added flashes yellow */
.mr-drawer__item.is-new { animation: mr-drawer-new 1.6s ease-out; }
@keyframes mr-drawer-new {
  0%, 30% { background: rgba(254, 215, 0, .35); }
  100% { background: transparent; }
}
.mr-drawer__photo { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--mr-steel-2); border-radius: 6px; overflow: hidden; }
.mr-drawer__photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mr-drawer__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-drawer__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mr-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mr-drawer__name:hover { text-decoration: underline; }
.mr-drawer__code { color: var(--mr-text-2); font-size: 13px; }
.mr-drawer__code .mr-code { color: var(--mr-text); font-weight: 600; }
.mr-drawer__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.mr-drawer__price { font-size: 17px; font-variant-numeric: tabular-nums; }
.mr-step { display: inline-flex; align-items: center; border: 1px solid var(--mr-line); border-radius: var(--mr-radius); }
.mr-step button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--mr-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mr-step button:hover:not(:disabled) { background: var(--mr-steel); }
.mr-step button:disabled { color: var(--mr-line); cursor: default; }
.mr-step span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.mr-drawer__remove {
  position: absolute;
  top: 14px;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mr-text-2);
  cursor: pointer;
}
.mr-drawer__remove .mr-icon { width: 16px; height: 16px; }
.mr-drawer__remove:hover { background: var(--mr-steel); color: var(--mr-red); }
.mr-drawer__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--mr-steel-2); background: var(--mr-steel); }
.mr-drawer__sums { display: grid; gap: 4px; margin: 0 0 6px; }
.mr-drawer__sums div { display: flex; justify-content: space-between; gap: 12px; color: var(--mr-text-2); font-size: 15px; }
.mr-drawer__sums dt { font-weight: 400; }
.mr-drawer__sums dd { margin: 0; color: var(--mr-text); font-variant-numeric: tabular-nums; }
.mr-drawer__sums .is-total { margin-top: 6px; color: var(--mr-text); font-size: 18px; font-weight: 700; }
.mr-drawer__sums .is-total dt { font-weight: 700; }
.mr-drawer__sums .is-total small { color: var(--mr-text-2); font-size: 12px; font-weight: 400; }
.mr-drawer__sums .is-total dd { font-size: 26px; font-weight: 800; line-height: 1; font-variation-settings: "wdth" 80; }
.mr-drawer__foot .mr-btn { width: 100%; padding: 14px 20px; font-size: 16px; }
.mr-drawer__foot .mr-btn--line { background: var(--mr-white); }
.mr-drawer__empty { display: grid; justify-items: center; align-content: center; gap: 12px; flex: 1; padding: 32px; text-align: center; }
.mr-drawer__empty .mr-icon { width: 48px; height: 48px; color: var(--mr-line); }
.mr-drawer__empty p { margin: 0; color: var(--mr-text-2); font-size: 17px; }
/* on body: with html hidden, body (overflow-x: hidden) would become the scroller and jump to the top */
body.mr-drawer-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mr-drawer__panel,
  .mr-drawer__scrim { transition: none; }
  .mr-drawer__item.is-new { animation: none; }
}

/* ---------- Product miniature (card in .mr-grid, row in .mr-list) ---------- */

.mr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--mr-line);
  border: 1px solid var(--mr-line);
}
.mr-prod { position: relative; background: var(--mr-white); }
.mr-prod__media { position: relative; }
/* blockwishlist heart */
.mr-prod .wishlist-button-add {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mr-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.mr-list .mr-prod .wishlist-button-add { width: 30px; height: 30px; top: -4px; right: -4px; }
.mr-prod__photo { display: grid; place-items: center; background: var(--mr-white); }
.mr-prod__photo img { max-width: 100%; height: auto; object-fit: contain; }
.mr-prod__nophoto {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: var(--mr-steel);
  color: var(--mr-text-2);
  font-size: 12px;
  text-align: center;
}
.mr-prod__brand { display: block; font-size: 13px; color: var(--mr-text-2); }
.mr-prod__name {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  font-variation-settings: "wdth" 85;
}
.mr-prod__name a { text-decoration: none; }
.mr-prod__name a:hover { text-decoration: underline; text-decoration-color: var(--mr-yellow); text-decoration-thickness: 2px; }
.mr-prod__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--mr-text-2); }
.mr-prod__meta .mr-code { color: var(--mr-text); }
.mr-prod__price .mr-price { display: block; font-size: 20px; line-height: 1.2; }
.mr-prod__price small { color: var(--mr-text-2); font-size: 12px; }
.mr-prod__old { display: block; color: var(--mr-text-2); font-size: 14px; }
.mr-buy { display: flex; gap: 6px; }
.mr-qty {
  width: 56px;
  padding: 10px 4px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  text-align: center;
}
.mr-buy .mr-btn { flex: 1; padding: 10px 12px; }

.mr-grid .mr-prod { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.mr-grid .mr-prod__photo { aspect-ratio: 223 / 268; }
.mr-grid .mr-prod__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mr-grid .mr-prod__price { margin-top: auto; }

.mr-carousel__track .mr-prod {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  scroll-snap-align: start;
}
.mr-carousel__track .mr-prod:hover { border-color: var(--mr-text-2); }
.mr-carousel__track .mr-prod__photo { aspect-ratio: 1; }
.mr-carousel__track .mr-prod__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.mr-carousel__track .mr-prod__price { margin-top: auto; }
.mr-carousel__track .mr-qty { display: none; }

.mr-list { border-top: 1px solid var(--mr-line); }
.mr-list .mr-prod {
  display: grid;
  grid-template-columns: 96px 1fr 150px 190px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--mr-line);
}
.mr-list .mr-prod__photo { width: 96px; height: 96px; }
.mr-list .mr-prod__photo img { max-height: 96px; }
.mr-list .mr-prod__name { font-size: 16px; }
.mr-list .mr-prod__price { text-align: right; }
.mr-list .mr-prod__price .mr-price { font-size: 22px; }

/* ---------- Footer ---------- */

#footer { padding: 0; background: var(--mr-navy-3); color: #AFBBC8; }
#footer a { color: inherit; text-decoration: none; }
#footer a:hover { color: var(--mr-white); text-decoration: underline; }

.mr-footer-before { background: var(--mr-white); color: var(--mr-text); }
.mr-footer-before .container { display: grid; gap: 0; padding-top: 0; padding-bottom: 0; }
#footer .mr-footer-before a { color: var(--mr-text); }

.mr-garanzie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--mr-line);
  border-bottom: 1px solid var(--mr-line);
}
.mr-garanzie__item { padding: 20px 16px; border-left: 1px solid var(--mr-line); }
.mr-garanzie__item:first-child { border-left: 0; padding-left: 0; }
.mr-garanzie__item b { display: block; font-variation-settings: "wdth" 80; }
.mr-garanzie__item span { color: var(--mr-text-2); font-size: 14px; }

.mr-newsletter {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 16px 40px;
  align-items: center;
  padding: 32px 0;
}
.mr-newsletter__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  font-variation-settings: "wdth" 75;
}
.mr-newsletter__note { margin: 4px 0 0; color: var(--mr-text-2); font-size: 14px; max-width: 60ch; }
.mr-newsletter__field { display: flex; gap: 6px; }
.mr-newsletter__field input[type=email] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  background: var(--mr-white);
}
#footer .mr-newsletter .mr-btn--yellow {
  position: static;
  padding: 12px 20px;
  background: var(--mr-yellow);
  color: var(--mr-navy);
  font-weight: 700;
}
#footer .mr-newsletter .mr-btn--yellow:hover { background: var(--mr-yellow-dark); }
.mr-newsletter__msg { margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.mr-newsletter__msg.is-ok { color: var(--mr-green); }
.mr-newsletter__msg.is-error { color: var(--mr-red); }

.mr-footer__in {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
  font-size: 15px;
}
.mr-footer__title,
#footer .mr-footer__in .h3,
#footer .mr-footer__in .h4,
#footer .mr-footer__in .h4 a,
#footer .mr-footer__in .h3 a {
  margin: 0 0 12px;
  color: var(--mr-white);
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  font-variation-settings: "wdth" 80;
}
.mr-footer__shop p { margin: 0 0 8px; }

/* flatten ps_linklist / ps_customeraccountlinks bootstrap columns into the footer grid */
.mr-footer__in > .links:not(.wrapper),
.mr-footer__in > .links:not(.wrapper) > .row { display: contents; }
.mr-footer__in [class*="col-"] { width: auto; max-width: none; float: none; padding: 0; flex: none; }
.mr-footer__in .collapse { display: block; }
/* bootstrap clearfix pseudo-elements would become empty grid cells */
.mr-footer__in .clearfix,
.mr-footer__in .row::before,
.mr-footer__in .row::after { display: none; }
.mr-footer__in .text-uppercase { text-transform: none !important; }
.mr-footer__in .title.hidden-md-up,
.mr-footer__in .navbar-toggler { display: none; }
.mr-footer__in .h3.hidden-sm-down { display: block; }
.mr-footer__in ul { margin: 0; padding: 0; list-style: none; }
.mr-footer__in li { margin: 0 0 6px; }
#footer .mr-footer__in li a { font-size: 15px; color: #AFBBC8; }
#footer .mr-footer__in li a:hover { color: var(--mr-white); }
#footer .block-social { display: none; }
/* ps_contactinfo repeats the address of the first column */
.mr-footer__in .block-contact { display: none; }

.mr-footer__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid #22344A;
  font-size: 13px;
}
.mr-footer__legal { margin: 0; text-align: right; }
@media (max-width: 767px) {
  .mr-footer__legal { text-align: left; }
}

/* ---------- Breadcrumb ---------- */

#wrapper .breadcrumb { margin: 0; padding: 16px 0 0; background: transparent; font-size: 14px; color: var(--mr-text-2); }
#wrapper .breadcrumb ol { margin: 0; padding: 0; }
#wrapper .breadcrumb li { display: inline; }
#wrapper .breadcrumb li::after { content: "/"; margin: 0 6px; color: var(--mr-line); }
#wrapper .breadcrumb li:last-child::after { content: none; }
#wrapper .breadcrumb li a { color: var(--mr-text-2); text-decoration: none; }
#wrapper .breadcrumb li a:hover { color: var(--mr-text); text-decoration: underline; }

/* ---------- Two-column layout (category, search) ---------- */

.layout-left-column #wrapper > .container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
}
.layout-left-column #wrapper > .container > * { grid-column: 1 / -1; }
.layout-left-column #wrapper > .container > #left-column,
.layout-left-column #wrapper > .container > #content-wrapper {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
}
.layout-left-column #wrapper > .container > #left-column { grid-column: 1; padding-top: 24px; }
.layout-left-column #wrapper > .container > #content-wrapper { grid-column: 2; padding-bottom: 64px; }

.mr-cat-band { background: var(--mr-steel); border-bottom: 1px solid var(--mr-line); margin-bottom: 24px; }
.mr-cat-band .container { padding-top: 0; padding-bottom: 24px; }
.mr-cat-band h1 {
  margin: 10px 0 4px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1;
  font-variation-settings: "wdth" 70;
}
.mr-cat-band__count { margin: 0 0 16px; color: var(--mr-text-2); }
.mr-cat-band__desc { margin-top: 16px; max-width: 70ch; color: var(--mr-text-2); }
.mr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mr-chips a {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--mr-line);
  border-radius: 999px;
  background: var(--mr-white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.mr-chips a:hover { border-color: var(--mr-text); text-decoration: none; }
.mr-chips a[aria-current] { background: var(--mr-navy); border-color: var(--mr-navy); color: var(--mr-white); }
.layout-left-column #wrapper > .container > #left-column { padding-top: 0; }

.mr-cat-head {
  padding: 12px 0 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--mr-text);
}
.mr-cat-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  font-variation-settings: "wdth" 70;
}
.mr-cat-head__count { margin: 6px 0 0; color: var(--mr-text-2); }
.mr-cat-head__desc { margin-top: 12px; max-width: 70ch; color: var(--mr-text-2); }

.mr-subcats { margin-bottom: 32px; }

/* ---------- Left column: groups of the category (mrtheme sidebar) ---------- */

.mr-cat-band .mr-chips { display: none; }
.mr-side { margin-bottom: 32px; }
.mr-side__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--mr-text-2);
  font-size: 14px;
  text-decoration: none;
}
.mr-side__back .mr-icon { width: 16px; height: 16px; }
.mr-side__back:hover { color: var(--mr-text); text-decoration: underline; }
.mr-side__title {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  font-variation-settings: "wdth" 75;
}
.mr-side__title:hover { text-decoration: underline; }
.mr-side__search { position: relative; display: block; margin: 0 0 10px; }
.mr-side__search .mr-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--mr-text-2);
  transform: translateY(-50%);
  pointer-events: none;
}
.mr-side__search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  background: var(--mr-white);
  font-size: 15px;
}
.mr-side__search input:focus { border-color: var(--mr-text); outline: 2px solid var(--mr-yellow); outline-offset: 0; }
/* long lists scroll inside the column, the filters below stay close; relative for offsetTop */
.mr-side__list {
  position: relative;
  max-height: min(60vh, 560px);
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
.mr-side__list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
}
.mr-side__list a:hover { background: var(--mr-steel); text-decoration: none; }
.mr-side__n { flex: none; color: var(--mr-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.mr-side__list .is-current a { background: var(--mr-yellow); font-weight: 700; }
.mr-side__list .is-current .mr-side__n { color: var(--mr-text); }
.mr-side__empty { margin: 8px 0 0; color: var(--mr-text-2); font-size: 14px; }

/* ---------- Left column: category tree ---------- */

#left-column .block-categories { padding: 0; margin-bottom: 28px; background: transparent; box-shadow: none; }
.mr-tree__parent {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-variation-settings: "wdth" 80;
}
.mr-tree__parent:hover { text-decoration: underline; }
.mr-tree__list { margin: 0; padding: 0; list-style: none; }
.mr-tree__list:not(.is-open) > li:nth-child(n+13):not(.is-current) { display: none; }
.mr-tree__list a {
  display: block;
  margin: 0 -8px;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 15px;
  text-decoration: none;
}
.mr-tree__list a:hover { background: var(--mr-steel); text-decoration: none; }
.mr-tree__list .is-current a { background: var(--mr-yellow); font-weight: 700; }
.mr-tree__more {
  margin-top: 4px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Left column: faceted search ---------- */

#search_filters_wrapper { margin: 0; }
#search_filters { padding: 0; margin: 0; background: transparent; box-shadow: none; }
#search_filters > .h6.text-uppercase { display: none; }
#search_filters .facet { margin-bottom: 28px; padding: 0; }
#search_filters .facet .facet-title {
  margin: 0 0 8px;
  color: var(--mr-text);
  font-size: 15px;
  font-weight: 700;
  font-variation-settings: "wdth" 80;
}
#search_filters .facet ul { margin: 0; padding: 0; }
#search_filters .facet .facet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  cursor: pointer;
}
#search_filters .facet .facet-label a {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--mr-text);
  font-size: 15px;
  text-decoration: none;
}
#search_filters .facet .facet-label .magnitude { color: var(--mr-text-2); font-size: 13px; }
#search_filters .custom-checkbox input[type=checkbox] + span {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--mr-line);
  border-radius: 3px;
}
#search_filters .custom-checkbox input[type=checkbox]:checked + span { background: var(--mr-navy); border-color: var(--mr-navy); }
#search_filters .custom-checkbox input[type=checkbox] + span .checkbox-checked { margin: -2px; font-size: 18px; color: var(--mr-white); }
#search_filters .ui-slider .ui-slider-range { background: var(--mr-navy); }
#search_filters .ui-slider .ui-slider-handle { border-color: var(--mr-navy); }
/* phones keep classic's collapsible facets */
#search_filters .facet .title.hidden-md-up .facet-title { margin: 0; padding: 10px 0; }
#search_filters .js-search-filters-clear-all { margin-bottom: 16px; }

.active_filters { margin: 0 0 16px; padding: 12px 16px; background: var(--mr-steel); }
.active_filters .active-filter-title { display: inline; margin-right: 8px; font-weight: 600; }
.active_filters .filter-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 4px 2px 0;
  padding: 4px 10px;
  background: var(--mr-white);
  border: 1px solid var(--mr-line);
  border-radius: 3px;
  box-shadow: none;
  font-size: 14px;
  color: var(--mr-text);
}

/* ---------- Listing toolbar ---------- */

.mr-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.mr-bar__tools { display: flex; gap: 8px; }
.mr-sort { position: relative; display: flex; align-items: center; gap: 8px; }
.mr-sort__label { color: var(--mr-text-2); white-space: nowrap; }
.mr-sort__button {
  min-width: 200px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  background: var(--mr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316253A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  text-align: left;
  cursor: pointer;
}
.mr-sort .dropdown-menu { min-width: 100%; margin-top: 4px; padding: 4px 0; border: 1px solid var(--mr-line); border-radius: var(--mr-radius); }
.mr-sort .dropdown-menu a { display: block; padding: 8px 12px; color: var(--mr-text); text-decoration: none; }
.mr-sort .dropdown-menu a:hover,
.mr-sort .dropdown-menu a.current { background: var(--mr-steel); }
.mr-view { display: inline-flex; border: 1px solid var(--mr-line); border-radius: var(--mr-radius); overflow: hidden; }
.mr-view button,
.mr-bar__filters { padding: 8px 12px; border: 0; background: var(--mr-white); font-size: 14px; cursor: pointer; }
.mr-view button[aria-pressed=true] { background: var(--mr-navy); color: var(--mr-white); }
.mr-bar__filters { display: none; border: 1px solid var(--mr-line); border-radius: var(--mr-radius); font-weight: 600; }

/* classic makes .products a flex row; the listing decides its own layout */
#js-product-list .mr-items.mr-list { display: block; }
#js-product-list .mr-items.mr-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
#js-product-list .mr-items .mr-prod { width: auto; margin: 0; }

/* ---------- Pagination ---------- */

.mr-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.mr-pages__summary { margin: 0; color: var(--mr-text-2); font-size: 14px; }
.mr-pages .page-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; background: none; box-shadow: none; }
.mr-pages .page-list li { display: block; }
.mr-pages .page-list a,
.mr-pages .page-list .spacer {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  color: var(--mr-text);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.mr-pages .page-list .spacer { border-color: transparent; }
.mr-pages .page-list a:hover { border-color: var(--mr-text); }
.mr-pages .page-list .current a { background: var(--mr-navy); border-color: var(--mr-navy); color: var(--mr-white); }
.mr-pages .page-list a.disabled { opacity: .4; pointer-events: none; }

/* ---------- Product page ---------- */

#product #content-wrapper { padding-bottom: 56px; }
.mr-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 24px 0 48px;
}
.mr-product .page-content { margin: 0; padding: 0; background: none; box-shadow: none; }
.mr-product .product-cover {
  display: grid;
  place-items: center;
  height: 520px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--mr-line);
  background: var(--mr-white);
  overflow: hidden;
}
.mr-product .product-cover img { width: 100%; height: 100%; object-fit: contain; box-shadow: none; }
.mr-product .product-cover .layer { background: transparent; }
.mr-product .product-cover .layer .zoom-in { color: var(--mr-navy); }
.mr-product .product-images > li.thumb-container > .thumb.selected,
.mr-product .product-images > li.thumb-container > .thumb:hover { border-color: var(--mr-yellow); }
.mr-product .scroll-box-arrows { display: none; }
.mr-product .images-container { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
/* flags sit on the photo, not on the thumbnail column */
.mr-product .product-flags { left: 88px; }
.mr-product .images-container .product-cover { grid-column: 2; grid-row: 1; }
.mr-product .images-container .js-qv-mask { grid-column: 1; grid-row: 1; width: auto; margin: 0; overflow: visible; }
.mr-product .product-images { display: grid; gap: 8px; margin: 0; padding: 0; transform: none !important; }
.mr-product .product-images > li.thumb-container { display: block; width: auto; margin: 0; }
.mr-product .product-images > li.thumb-container > .thumb { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 2px solid var(--mr-line); border-radius: 4px; }
/* the nightly import re-dates products, so "new" would be on everything */
.product-flags .product-flag.new { display: none; }

.mr-product__brand { margin: 0; color: var(--mr-text-2); font-weight: 600; }
.mr-product__title {
  margin: 6px 0 20px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
  font-variation-settings: "wdth" 75;
}
.mr-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0 0 24px;
  border-top: 2px solid var(--mr-text);
}
.mr-specs dt,
.mr-specs dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--mr-steel-2);
}
.mr-specs dt { padding-right: 24px; color: var(--mr-text-2); font-weight: 400; }
.mr-copy {
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid var(--mr-line);
  border-radius: 3px;
  background: none;
  font-size: 13px;
  cursor: pointer;
}
.mr-copy:hover { border-color: var(--mr-text); }
.mr-product__short { margin-bottom: 24px; color: var(--mr-text-2); }

.mr-buybox {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--mr-radius);
  background: var(--mr-steel);
}
.mr-buybox .product-prices { margin: 0; }
.mr-buybox .product-price { margin: 0; color: var(--mr-text); }
.mr-buybox .current-price-value {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 85;
}
.mr-buybox .tax-shipping-delivery-label { display: inline; margin-left: 6px; color: var(--mr-text-2); font-size: 14px; }
.mr-buybox .current-price { display: inline; }
.mr-buybox .product-add-to-cart { margin: 0; }
.mr-buy--big .mr-qty { width: 72px; padding: 14px 4px; }
.mr-buy--big .mr-btn { flex: 1; padding: 14px 20px; font-size: 17px; }
.mr-buy--big .mr-btn:disabled { opacity: .5; cursor: not-allowed; }
/* product.js wraps the quantity in TouchSpin; the plain number input is enough */
.mr-buy .bootstrap-touchspin { display: contents; }
.mr-buy .bootstrap-touchspin .input-group-btn-vertical { display: none; }
.mr-buybox .product-minimal-quantity:empty { display: none; }
.mr-buybox__help { margin: 0; color: var(--mr-text-2); font-size: 15px; }
.mr-buybox__help a { color: var(--mr-text); font-weight: 600; }
.mr-buybox .product-additional-info:empty { display: none; }
/* wishlist heart next to the button; payment logos (ps_checkout) and sharing below */
.mr-buybox .product-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.mr-buybox .product-add-to-cart > * { flex: 1 1 100%; }
.mr-buybox .product-add-to-cart > .mr-buy { flex: 1 1 0; min-width: 0; }
.mr-buybox .wishlist-button-product {
  flex: 0 0 auto;
  position: static;
  width: 54px;
  height: auto;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  background: var(--mr-white);
  box-shadow: none;
}
.mr-buybox .wishlist-button-product:hover { border-color: var(--mr-text); }
.mr-buybox .wishlist-button-product i { color: var(--mr-text); }
.mr-buybox #ps_checkout-payment-method-logo-block-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--mr-steel-2);
  text-align: left;
}
.mr-buybox #ps_checkout-payment-method-logo-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--mr-text-2);
  font-size: 13px;
  font-weight: 600;
}
.mr-buybox #ps_checkout-payment-method-logo-block-img { width: 13px; height: 13px; margin: 0; }
.mr-buybox #ps_checkout-payment-method-logos-container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.mr-buybox #ps_checkout-payment-method-logos-container .paypal-mark { margin: 0; border-color: var(--mr-steel-2); border-radius: 4px; }
.mr-buybox #ps_checkout-payment-method-logos-container .paypal-mark img { height: 16px; }
.mr-buybox .social-sharing { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--mr-text-2); font-size: 13px; font-weight: 600; }
.mr-buybox .social-sharing ul { display: flex; gap: 6px; margin: 0; padding: 0; }
.mr-buybox .social-sharing li {
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid var(--mr-line);
  background-color: var(--mr-white);
  background-size: 24px;
  box-shadow: none;
}

.mr-product__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  padding-bottom: 8px;
}
.mr-product__details h2,
.mr-product__extra h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
}

/* blockreassurance on the product page: icon, then title over text */
.mr-product__info .blockreassurance_product { display: grid; gap: 10px; margin-top: 20px; }
.mr-product__info .blockreassurance_product > div { display: grid; grid-template-columns: 24px 1fr; gap: 0 12px; align-items: start; margin: 0; }
.mr-product__info .blockreassurance_product .item-product { grid-row: span 2; width: 24px; height: 24px; margin: 0; }
.mr-product__info .blockreassurance_product .item-product svg,
.mr-product__info .blockreassurance_product .item-product img { width: 24px; height: 24px; }
.mr-product__info .blockreassurance_product svg path { fill: var(--mr-text) !important; }
.mr-product__info .blockreassurance_product .block-title { font-size: 15px; font-weight: 600; color: var(--mr-text) !important; }
.mr-product__info .blockreassurance_product p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mr-text-2) !important; }

/* ---------- Pages, forms and buttons (account, cart, checkout) ---------- */

#main .page-header h1,
#main > h1,
.page-header h1 {
  margin: 8px 0 20px;
  color: var(--mr-text);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: none;
  font-variation-settings: "wdth" 70;
}
#wrapper .page-content.card,
#wrapper .card {
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  box-shadow: none;
  background: var(--mr-white);
}
#wrapper .page-content.card-block,
#wrapper .card-block { padding: 24px; }
#wrapper .page-footer { margin: 16px 0 40px; }
#wrapper .page-footer a { font-weight: 600; }

/* fields stacked label-on-top: easier to scan and to fill on a phone */
#wrapper .form-group.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 560px; margin: 0 0 16px; }
#wrapper .form-group.row > [class*="col-"] { width: auto; max-width: none; padding: 0; float: none; flex: none; text-align: left; }
#wrapper .form-control-label { padding: 0; color: var(--mr-text); font-size: 15px; font-weight: 600; text-align: left; }
#wrapper .form-control-comment { padding: 0; color: var(--mr-text-2); font-size: 13px; }
#wrapper .form-control {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-radius);
  background: var(--mr-white);
  color: var(--mr-text);
  font-size: 16px;
}
#wrapper .form-control:focus { border-color: var(--mr-navy); outline: 3px solid var(--mr-yellow); outline-offset: 0; box-shadow: none; }
#wrapper select.form-control { appearance: auto; }
#wrapper .input-group .input-group-btn > .btn {
  height: 46px;
  padding: 0 14px;
  border-radius: 0 var(--mr-radius) var(--mr-radius) 0;
  background: var(--mr-steel);
  color: var(--mr-text);
  font-size: 13px;
  text-transform: none;
}
#wrapper .help-block,
#wrapper small.form-text { color: var(--mr-text-2); }
#wrapper .form-footer { margin-top: 8px; }

#wrapper .custom-checkbox input[type=checkbox] + span,
#wrapper .custom-radio {
  border-color: var(--mr-text-2);
}
#wrapper .custom-radio input[type=radio]:checked + span { background: var(--mr-navy); }
#wrapper .custom-checkbox input[type=checkbox]:checked + span { background: var(--mr-navy); border-color: var(--mr-navy); }
#wrapper .custom-checkbox input[type=checkbox] + span .checkbox-checked { color: var(--mr-white); }

#wrapper .btn {
  border-radius: var(--mr-radius);
  font-family: var(--mr-font);
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
}
#wrapper .btn-primary { padding: 12px 22px; border: 0; background: var(--mr-yellow); color: var(--mr-navy); }
#wrapper .btn-primary:hover,
#wrapper .btn-primary:focus { background: var(--mr-yellow-dark); color: var(--mr-navy); }
#wrapper .btn-primary.disabled,
#wrapper .btn-primary:disabled { background: var(--mr-steel-2); color: var(--mr-text-2); opacity: 1; }
#wrapper .btn-secondary,
#wrapper .btn-tertiary { padding: 11px 20px; border: 2px solid var(--mr-line); background: var(--mr-white); color: var(--mr-text); }
#wrapper .btn-secondary:hover,
#wrapper .btn-tertiary:hover { border-color: var(--mr-text); }
#wrapper .btn .material-icons { display: none; }

#wrapper .alert { border: 0; border-left: 0; border-radius: var(--mr-radius); font-size: 15px; }
#wrapper .alert-danger { background: #FBEAEA; color: #8A1C15; }
#wrapper .alert-success { background: #E6F4EC; color: #145234; }
#wrapper .alert-info,
#wrapper .alert-warning { background: var(--mr-steel); color: var(--mr-text); }

#wrapper .table { border: 1px solid var(--mr-line); }
#wrapper .table th { background: var(--mr-steel); color: var(--mr-text); font-weight: 700; border-color: var(--mr-line); }
#wrapper .table td { border-color: var(--mr-line); }

/* ---------- Account ---------- */

#authentication #content,
#registration #content,
#password #content { max-width: 620px; }
#authentication .forgot-password { margin-top: 4px; }
#authentication .forgot-password a,
#wrapper .no-account a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--mr-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
#wrapper .no-account { padding-top: 16px; border-top: 1px solid var(--mr-line); text-align: left; }
#authentication .login-form .form-footer .btn-primary { width: 100%; max-width: 560px; }

#my-account #content > .row { margin: 0; }
#my-account #content .links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
#my-account #content .links a {
  display: block;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  float: none;
}
#my-account #content .links a .link-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  background: var(--mr-white);
  box-shadow: none;
  color: var(--mr-text);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
  font-variation-settings: "wdth" 85;
}
#my-account #content .links a:hover .link-item { border-color: var(--mr-text); background: var(--mr-steel); }
#my-account #content .links a .link-item i { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--mr-yellow); color: var(--mr-navy); font-size: 24px; }
#my-account .page-footer .text-sm-center { text-align: left; }
#my-account .page-footer a { display: inline-block; margin-top: 8px; padding: 10px 18px; border: 2px solid var(--mr-line); border-radius: var(--mr-radius); color: var(--mr-text); }
#my-account .page-footer a:hover { border-color: var(--mr-text); }

#wrapper .address { border: 1px solid var(--mr-line); border-radius: 6px; box-shadow: none; }
#wrapper .address .address-body h4 { font-size: 17px; font-weight: 700; text-transform: none; }
#wrapper .address .address-footer { border-top-color: var(--mr-line); }
#wrapper .address .address-footer a { color: var(--mr-text); font-weight: 600; }
#wrapper .addresses-footer a { font-weight: 600; }

/* blockwishlist pages */
#wrapper .wishlist-container-header h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; text-transform: none; font-variation-settings: "wdth" 70; }
#wrapper .wishlist-add-to-new,
#wrapper .wishlist-list-item a,
#wrapper .wishlist-footer-links a { color: var(--mr-text); font-weight: 600; }
#wrapper .wishlist-add-to-new i { color: var(--mr-text); }
#wrapper .wishlist-list-item { border-radius: 6px; }

/* ---------- Cart page ---------- */

#cart #wrapper { padding-bottom: 40px; }
#cart .cart-grid { margin-top: 8px; }
#cart .cart-grid-body .card-block h1 { margin: 0; font-size: 32px; font-weight: 800; text-transform: none; font-variation-settings: "wdth" 72; }
#cart .cart-overview { padding: 0 24px 8px; }
#cart .cart-item { padding: 18px 0; border-bottom: 1px solid var(--mr-line); }
#cart .cart-item:last-child { border-bottom: 0; }
#cart .product-line-grid-left img { max-width: 96px; border: 1px solid var(--mr-steel-2); border-radius: 4px; }
#cart .product-line-info .label { color: var(--mr-text); font-size: 16px; font-weight: 600; text-decoration: none; font-variation-settings: "wdth" 85; }
#cart .product-line-info .label:hover { text-decoration: underline; text-decoration-color: var(--mr-yellow); text-decoration-thickness: 2px; }
.mr-cart-code { display: block; margin-top: 2px; color: var(--mr-text-2); font-size: 13px; }
#cart .product-line-info.product-price { color: var(--mr-text-2); font-size: 15px; font-weight: 600; }
#cart .product-line-grid-right .product-price { color: var(--mr-text); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
#cart .remove-from-cart { color: var(--mr-text-2); }
#cart .remove-from-cart:hover { color: var(--mr-red); }
/* cart quantity: the number field alone (TouchSpin arrows broke the layout on phones);
   classic's cart script still updates the line on change */
#wrapper .bootstrap-touchspin { display: inline-flex; width: auto; }
#wrapper .bootstrap-touchspin .input-group-btn-vertical { display: none; }
#wrapper .bootstrap-touchspin input.form-control { width: 72px; min-height: 44px; height: 44px; text-align: center; border-radius: var(--mr-radius); }
#cart .cart-grid-body > a.label { display: inline-flex; margin-top: 16px; color: var(--mr-text); font-weight: 600; }

#wrapper .cart-summary { border: 0; background: var(--mr-steel); }
#wrapper .cart-summary-line { color: var(--mr-text); }
#wrapper .cart-summary-line .label,
#wrapper .cart-summary-line .value { color: var(--mr-text); font-size: 15px; }
#wrapper .cart-total { padding: 12px 0; border-top: 2px solid var(--mr-text); background: transparent; }
#wrapper .cart-total .label,
#wrapper .cart-total .value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
#wrapper .cart-detailed-actions .btn-primary { width: 100%; padding: 16px; font-size: 17px; }
#wrapper .block-promo .promo-code-button a { color: var(--mr-text); font-weight: 600; text-decoration: underline; }
#wrapper .block-promo .promo-input { min-height: 44px; border: 1px solid var(--mr-line); border-radius: var(--mr-radius) 0 0 var(--mr-radius); }

/* ---------- Checkout ---------- */

body#checkout #header { background: var(--mr-navy); }
.mr-checkout-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.mr-checkout-head .mr-brand img { width: 48px; height: 48px; }
.mr-checkout-head .mr-brand__name { font-size: 20px; }
.mr-checkout-head__secure { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; color: var(--mr-white); font-weight: 600; }
.mr-checkout-head__secure .mr-icon { color: var(--mr-yellow); }
#header .mr-checkout-head__tel { color: #C9D2DC; font-size: 14px; }
#header .mr-checkout-head__tel strong { color: var(--mr-white); }

body#checkout #wrapper { padding-top: 24px; background: var(--mr-steel); }
body#checkout section.checkout-step {
  margin-bottom: 12px;
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  background: var(--mr-white);
  box-shadow: none;
}
body#checkout section.checkout-step .step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 20px;
  color: var(--mr-text-2);
  font-size: 22px;
  font-weight: 800;
  text-transform: none;
  font-variation-settings: "wdth" 72;
}
body#checkout section.checkout-step.-current .step-title { color: var(--mr-text); }
body#checkout section.checkout-step .step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mr-steel-2);
  color: var(--mr-text);
  font-size: 16px;
}
/* !important: payment modules (ps_checkout) paint the current step number green */
body#checkout section.checkout-step .step-number { background: var(--mr-steel-2) !important; color: var(--mr-text) !important; }
body#checkout section.checkout-step.-current .step-number { background: var(--mr-yellow) !important; }
body#checkout section.checkout-step .done { display: none; }
/* completed steps: the number circle turns green with a check drawn in CSS */
body#checkout section.checkout-step.-complete:not(.-current) .step-number { position: relative; display: grid !important; background: var(--mr-green) !important; color: transparent !important; }
body#checkout section.checkout-step.-complete:not(.-current) .step-number::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 12px;
  width: 8px;
  height: 14px;
  border: solid var(--mr-white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
body#checkout section.checkout-step .step-edit { display: none; margin-left: auto; text-transform: none; color: var(--mr-text); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--mr-yellow); text-decoration-thickness: 2px; font-variation-settings: "wdth" 100; }
body#checkout section.checkout-step.-reachable.-complete:not(.-current) .step-edit { display: inline; cursor: pointer; }
body#checkout section.checkout-step .content { padding: 0 20px 24px; }
body#checkout section.checkout-step:not(.-current) .content { display: none; }

body#checkout .nav-inline { display: flex; gap: 8px; margin-bottom: 20px; }
body#checkout .nav-inline .nav-item { margin: 0; }
body#checkout .nav-inline .nav-separator { display: none; }
body#checkout .nav-inline .nav-link { padding: 8px 14px; border: 1px solid var(--mr-line); border-radius: 999px; color: var(--mr-text); font-weight: 600; }
body#checkout .nav-inline .nav-link.active { background: var(--mr-navy); border-color: var(--mr-navy); color: var(--mr-white); }

body#checkout section.checkout-step .address-item { border: 2px solid var(--mr-line); border-radius: 6px; background: var(--mr-white); }
body#checkout section.checkout-step .address-item.selected { border-color: var(--mr-navy); background: var(--mr-white); }
body#checkout section.checkout-step .delivery-option,
body#checkout section.checkout-step .payment-option {
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--mr-line);
  border-radius: 6px;
  background: var(--mr-white);
}
body#checkout .delivery-option .carrier-name,
body#checkout .payment-option label span { color: var(--mr-text); font-weight: 700; }
body#checkout .delivery-option .carrier-price { color: var(--mr-text); font-weight: 700; }
body#checkout #conditions-to-approve { margin: 16px 0; }
body#checkout #payment-confirmation .btn-primary { width: 100%; max-width: 420px; padding: 16px; font-size: 17px; }
body#checkout .js-cart-summary,
body#checkout #js-checkout-summary { position: sticky; top: 16px; }

.mr-checkout-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 16px 28px;
  color: var(--mr-text-2);
  font-size: 13px;
}
.mr-checkout-foot a { color: var(--mr-text); }

/* order lines on the confirmation page: photo, name, quantity and prices in one row */
#wrapper .order-confirmation-table .order-line {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(240px, 1.2fr);
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--mr-steel-2);
}
#wrapper .order-confirmation-table .order-line > [class*="col-"] { width: auto; max-width: none; padding: 0; float: none; }
#wrapper .order-confirmation-table .order-line .image img { width: 80px; height: auto; border: 1px solid var(--mr-steel-2); border-radius: 4px; }
#wrapper .order-confirmation-table .order-line .details { font-weight: 600; font-variation-settings: "wdth" 85; }
#wrapper .order-confirmation-table .order-line .qty .row { margin: 0; }
#wrapper .order-confirmation-table table { margin-top: 16px; }
#wrapper .order-confirmation-table .total-value { font-size: 18px; font-weight: 800; }

#order-confirmation #content-hook_order_confirmation .card-title { color: var(--mr-green); font-size: 28px; font-weight: 800; text-transform: none; font-variation-settings: "wdth" 72; }

/* ---------- Add-to-cart modal ---------- */

#blockcart-modal .modal-content { border: 0; border-top: 4px solid var(--mr-yellow); border-radius: 0; }
#blockcart-modal .modal-header { background: var(--mr-navy); }
#blockcart-modal .product-image { max-width: 160px; max-height: 160px; object-fit: contain; }
#blockcart-modal .modal-title { color: var(--mr-white); font-family: var(--mr-font); font-weight: 600; }
#blockcart-modal .modal-title i { color: var(--mr-yellow); }
#blockcart-modal .close { color: var(--mr-white); opacity: 1; }
#blockcart-modal .product-name { color: var(--mr-text); font-size: 17px; font-weight: 700; font-variation-settings: "wdth" 80; }
#blockcart-modal .cart-content .btn-primary {
  background: var(--mr-yellow);
  border-color: var(--mr-yellow);
  color: var(--mr-navy);
  font-weight: 700;
  text-transform: none;
}
#blockcart-modal .cart-content .btn-primary:hover { background: var(--mr-yellow-dark); }
#blockcart-modal .cart-content .btn-secondary {
  background: var(--mr-white);
  border: 2px solid var(--mr-line);
  color: var(--mr-text);
  text-transform: none;
}
#blockcart-modal .cart-content .btn i { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .mr-carousel__track { grid-auto-columns: calc((100% - 36px) / 4); }
  .mr-carousel.is-mini .mr-carousel__track { grid-auto-columns: calc((100% - 5 * 10px) / 6); }
  .mr-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mr-bento__item.is-xl { grid-column: span 4; }
  .mr-gtiles { grid-template-columns: repeat(3, 1fr); }
  .mr-nav__extra { display: none; }
  .mr-mega__groups { columns: 2; }
  .mr-mega__panel { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 1000px) {
  .mr-header__in { gap: 16px; }
  .mr-grid { grid-template-columns: repeat(2, 1fr); }
  .mr-footer__in { grid-template-columns: 1fr 1fr; }
  .mr-newsletter { grid-template-columns: 1fr; }
  .mr-list .mr-prod { grid-template-columns: 96px 1fr 150px; }
  .mr-list .mr-buy { grid-column: 2 / -1; }
  #js-product-list .mr-items.mr-grid { grid-template-columns: repeat(2, 1fr); }
  .mr-product { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .mr-slide__in { grid-template-columns: 1fr; align-content: center; }
  .mr-slide__visual { display: none; }
  .mr-hero__slides { height: 440px; }
  .mr-picker__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .mr-picker__tab { flex: 0 0 104px; }
  .mr-picker__groups { columns: 2; }
  .mr-picker__panel.has-photo { grid-template-columns: 1fr; }
  .mr-picker__photo { display: none; }
  .mr-carousel__track { grid-auto-columns: calc((100% - 12px) / 2.2); }
  .mr-carousel.is-mini .mr-carousel__track { grid-auto-columns: calc((100% - 3 * 10px) / 3.4); }
  .mr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 196px; gap: 12px; }
  .mr-bento__item.is-xl { grid-column: span 2; grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: minmax(150px, 1fr) auto; }
  .mr-bento__item.is-xl .mr-bento__name { font-size: 22px; }
  .mr-bento__item.is-wide { grid-column: span 2; }
  .mr-banners { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .mr-promo__text { display: none; }
  .mr-promo__in { justify-content: flex-end; }
  .mr-header__in { grid-template-columns: 1fr auto; gap: 12px; }
  .mr-header__in .mr-search { grid-column: 1 / -1; grid-row: 2; }
  .mr-brand img { width: 44px; height: 44px; }
  .mr-actions a { min-width: 44px; }
  .mr-actions__lbl { display: none; }
  .mr-all { padding: 0 12px; }
  .mr-all__lbl { display: none; }
  .mr-mega__in { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  #header .mr-mega__tabs { flex-direction: row; overflow-x: auto; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid var(--mr-steel-2); scrollbar-width: none; }
  #header .mr-mega__tab { grid-template-columns: auto; justify-items: center; gap: 2px; flex: 0 0 auto; }
  .mr-mega__tab-count { display: none; }
  .mr-mega__panel { grid-template-columns: 1fr; min-height: 0; }
  .mr-mega__groups { columns: 1; max-height: 52vh; }
  #header .mr-mega__aside { display: none; }
  .mr-gtiles { grid-template-columns: repeat(2, 1fr); }
  .mr-picker__body { padding: 20px 16px; }
  .mr-carousel.is-mini .mr-carousel__track { grid-auto-columns: calc((100% - 10px) / 2.3); }
  .mr-bento-band { padding: 40px 0 44px; }
  /* smaller tags on phones, the photos stay visible */
  .mr-bento__item.is-xl .mr-tag { top: 16px; left: 16px; }
  .mr-bento__item.is-xl .mr-tag__price { font-size: 28px; }
  .mr-bento__item.is-xl .mr-bento__photo { padding-top: 70px; }
  .mr-bento__item.is-tall .mr-tag__price,
  .mr-bento__item.is-wide .mr-tag__price { font-size: 18px; }
  .mr-bento__item .mr-tag__card { min-width: 0; padding: 20px 9px 7px; }
  .mr-bento__item.is-sq .mr-tag__price { font-size: 15px; }
  .mr-bento__photo { padding-top: 44px; }
  .mr-bento-band__head p { font-size: 16px; }
  .mr-picker__groups { columns: 1; }
  .mr-picker__title { font-size: 24px; }
  .mr-banner__parts { display: none; }
  .mr-banner__text { max-width: none; }
  .mr-footer__in { grid-template-columns: 1fr; }
  .mr-garanzie { grid-template-columns: 1fr 1fr; }
  .mr-garanzie__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  #index .page-home > .mr-garanzie .mr-garanzie__item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .mr-list .mr-prod { grid-template-columns: 72px 1fr; gap: 12px; }
  .mr-list .mr-prod__photo { width: 72px; height: 72px; }
  .mr-list .mr-prod__photo img { max-height: 72px; }
  .mr-list .mr-prod__price { grid-column: 2; text-align: left; }
  .mr-list .mr-buy { grid-column: 1 / -1; }
  /* products first on phones; filters follow the list */
  .layout-left-column #wrapper > .container { display: flex; flex-direction: column; align-items: stretch; }
  .layout-left-column #wrapper > .container > #left-column { order: 2; padding-top: 24px; border-top: 1px solid var(--mr-line); }
  /* groups as chips in the band, above the products */
  .mr-cat-band .mr-chips { display: flex; }
  .mr-side { display: none; }
  .mr-bar__filters { display: inline-block; }
  .mr-view { display: none; }
  #search_filter_controls { display: flex; gap: 8px; margin-bottom: 16px; }
  #search_filter_controls .ok { background: var(--mr-yellow); color: var(--mr-navy); border: 0; font-weight: 700; }
  .mr-sort__label { display: none; }
  .mr-sort__button { min-width: 0; }
  .mr-pages { justify-content: center; }
  .mr-product .images-container { grid-template-columns: 1fr; }
  .mr-product .images-container .product-cover { grid-column: 1; }
  .mr-product .images-container .js-qv-mask { grid-column: 1; grid-row: 2; }
  .mr-product .product-images { grid-auto-flow: column; grid-auto-columns: 64px; }
  .mr-product .product-flags { left: 0; }
  .mr-product .product-cover { height: 320px; }
  .mr-checkout-head__in { min-height: 64px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .mr-checkout-head .mr-brand__name { font-size: 17px; }
  .mr-checkout-head__secure { font-size: 14px; white-space: nowrap; }
  #wrapper .order-confirmation-table .order-line { grid-template-columns: 64px minmax(0, 1fr); }
  #wrapper .order-confirmation-table .order-line .qty { grid-column: 1 / -1; }
  #wrapper .order-confirmation-table .order-line .image img { width: 64px; }
  .mr-checkout-head .mr-brand__name small,
  .mr-checkout-head__tel { display: none; }
  #wrapper .card-block,
  #wrapper .page-content.card-block { padding: 16px; }
  #cart .cart-overview { padding: 0 16px 8px; }
  body#checkout section.checkout-step .step-title { padding: 14px 16px; font-size: 19px; }
  body#checkout section.checkout-step .content { padding: 0 16px 20px; }
  .mr-buybox .current-price-value { font-size: 32px; }
}

/* ---------- Product reviews (productcomments, on displayFooterProduct) ---------- */

#product-comments-list-header { margin: 48px 0 12px; }
#product-comments-list-header .comments-nb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
}
#product-comments-list-header .material-icons { color: var(--mr-text-2); }
#product-comments-list { padding: 20px; border: 1px solid var(--mr-steel-2); border-radius: var(--mr-radius); color: var(--mr-text-2); }
#product-comments-list-footer .btn-comment { border-radius: var(--mr-radius); background: var(--mr-yellow); color: var(--mr-navy); font-weight: 700; }

/* ---------- Cookie window (gdprpro): site colours, "Accetta" and "Rifiuta" with the same weight ---------- */

/* !important: the module sets colours inline on its buttons, a fixed height on the bar and,
   from its settings, text and background colours with !important; .gdprModal outranks those */
.gdprModal__placeholder { top: auto !important; bottom: 0 !important; height: auto !important; max-height: 100vh; overflow-y: auto; }
.gdpr-consent-tabs.popup-position-bottom {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding: 18px max(20px, calc((100vw - 1200px) / 2)) !important;
  border-top: 4px solid var(--mr-yellow);
  background: var(--mr-navy) !important;
  color: var(--mr-white);
  box-shadow: 0 -16px 40px -20px rgba(15, 27, 43, .6);
}
.gdpr-consent-tabs.popup-position-bottom .div_control_your_privacy { flex: 1 1 460px; width: auto !important; max-width: 760px; margin: 0; }
.gdprModal .gdpr-consent-tabs .div_control_your_privacy .h3_popuptitle {
  margin: 0 0 6px;
  color: var(--mr-white) !important;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
  font-variation-settings: "wdth" 75;
}
.gdprModal .gdpr-consent-tabs .div_control_your_privacy .div_text,
.gdprModal .gdpr-consent-tabs .div_control_your_privacy p { color: var(--mr-white) !important; font-size: 14px; line-height: 1.5; }
.gdpr-consent-tabs.popup-position-bottom .div_accept_moreinfo {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: auto !important;
  margin: 0;
  text-align: right;
}
.gdprModal .gdpr-consent-tabs .div_accept_moreinfo .span_moreinfo {
  color: var(--mr-yellow) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gdpr-consent-tabs.popup-position-bottom .gdpr_buttons { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; width: auto !important; }
.gdpr-consent-tabs #accept-all-gdpr,
.gdpr-consent-tabs #reject-all-gdpr,
.gdpr-consent-tabs #close-gdpr-consent {
  min-width: 168px;
  height: auto !important;
  min-height: 46px;
  margin: 0;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--mr-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.gdpr-consent-tabs #accept-all-gdpr { border-color: var(--mr-yellow); background: var(--mr-yellow) !important; color: var(--mr-navy) !important; }
.gdpr-consent-tabs #accept-all-gdpr:hover { background: var(--mr-yellow-dark) !important; }
.gdpr-consent-tabs #reject-all-gdpr { border-color: var(--mr-white); background: var(--mr-white) !important; color: var(--mr-navy) !important; }
.gdpr-consent-tabs #reject-all-gdpr:hover { background: var(--mr-steel) !important; }
.gdpr-consent-tabs #close-gdpr-consent { float: none; background: var(--mr-navy) !important; color: var(--mr-white) !important; }
/* details ("Ulteriori informazioni") */
.gdpr-consent-tabs.popup-position-bottom .div_show_moreinfo { flex: 1 1 100%; margin-top: 14px; border-radius: 6px; color: var(--mr-text); }
.gdpr-consent-tabs .gdpr-consent-tabs-navigation .selected { color: var(--mr-navy); font-weight: 700; }
.gdpr-consent-tabs .div_top_buttons footer { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.gdpr-consent-tabs .div_top_buttons footer label { margin: 0; color: var(--mr-text-2); font-size: 14px; }
/* "Controlla la tua privacy": reopens the window; a small pill at the bottom left, on phones too */
a.show-gdpr-modal,
#header a.show-gdpr-modal {
  position: fixed !important;
  left: 16px;
  bottom: 16px;
  z-index: 1400;
  display: inline-flex !important;
  align-items: center;
  max-height: none !important;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  border-radius: 999px;
  background: var(--mr-navy) !important;
  box-shadow: 0 6px 18px -6px rgba(15, 27, 43, .5);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
a.show-gdpr-modal:hover,
#header a.show-gdpr-modal:hover { background: var(--mr-navy-2) !important; }
@media (max-width: 767px) {
  .gdpr-consent-tabs.popup-position-bottom { padding: 16px !important; }
  .gdpr-consent-tabs.popup-position-bottom .div_accept_moreinfo { flex: 1 1 100%; align-items: stretch; text-align: left; }
  .gdpr-consent-tabs.popup-position-bottom .gdpr_buttons { display: grid !important; grid-template-columns: 1fr 1fr; }
  .gdpr-consent-tabs #accept-all-gdpr,
  .gdpr-consent-tabs #reject-all-gdpr { min-width: 0; }
  .gdprModal .gdpr-consent-tabs .div_control_your_privacy .div_text { font-size: 13px; }
  a.show-gdpr-modal,
  #header a.show-gdpr-modal { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 12px !important; }
}
