/* Expanded catalogue only. The closed header, page and existing controls retain their styles. */
.rh-header .rh-catalog-toggle[aria-expanded="true"] {
  background: linear-gradient(125deg, var(--rh-brand), var(--rh-deep));
  box-shadow: 0 5px 16px #008f8425;
}
.rh-header .rh-catalog-toggle[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.rh-header.header-v35 .rh-mega {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: calc(100% + 2px);
  height: min(650px, var(--rh-available-height, calc(100dvh - 178px)));
  max-height: var(--rh-available-height, calc(100dvh - 178px));
  padding: 18px 18px 0;
  overflow: hidden;
  border: 1px solid var(--rh-line);
  border-radius: 0 0 24px 24px;
  background: linear-gradient(145deg, #fff 50%, #fbfdfc);
  box-shadow: 0 22px 50px #16353828;
  animation: rm-reveal .18s ease-out both;
}
.rh-header .rh-mega .rm-layout {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 234px;
  align-items: stretch;
  gap: 17px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding-bottom: 18px;
}
.rh-header .rh-mega .rh-mega-side {
  position: static;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #edf4f1;
  border-radius: 18px;
  background: linear-gradient(165deg, #f7fbfa, #f1f8f6);
}
.rh-header .rh-mega .rh-group-row { margin: 0; border-radius: 11px; }
.rh-header .rh-mega .rh-group-row + .rh-group-row { border-top: 1px solid #e2ece8; }
.rh-header .rh-mega .rh-group-row:hover { background: #e9f6f1; }
.rh-header .rh-mega .rh-group-row[data-active="true"] { border-color: transparent; background: linear-gradient(120deg,#d4f3ec,#e4f7f4); }
.rh-header .rh-mega .rh-group-switch {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 53px;
  padding: 10px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--rh-ink);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.rh-header .rh-mega .rh-group-switch > svg:first-child { width: 25px; height: 25px; color: var(--rh-brand); }
.rh-header .rh-mega .rh-group-switch > span { min-width: 0; flex: 1; }
.rh-header .rh-mega .rh-group-switch > .rm-chevron,
.rh-header .rh-mega .rh-group-switch > svg:last-child { flex: 0 0 14px; width: 14px; height: 14px; color: var(--rh-brand); }
.rh-header .rh-mega .rh-group-row[data-active="true"] :is(svg,.rh-group-switch) { color: var(--rh-brand); }
.rh-header .rh-mega .rh-group-row[data-active="true"] .rh-group-switch { color: var(--rh-deep); }
.rh-header .rh-mega .rh-mega-content {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1px 5px 6px 1px;
}
.rh-header .rh-mega .rh-search { flex: 0 0 auto; margin: 0 0 11px; border-radius: 12px; background: #fbfdfc; }
.rh-header .rh-mega .rh-search input { min-height: 38px; padding-block: 7px; font-size: 12px; }
.rh-header .rh-mega .rh-search-status { flex: 0 0 auto; margin: 0 0 10px; font-size: 12px; }
.rh-header .rh-mega .rh-search-status:empty { display: none; }
.rh-header .rh-mega .rh-panels { min-width: 0; }
.rh-header .rh-mega .rh-panel { animation: rm-content .16s ease-out; }
.rh-header .rh-mega .rh-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  letter-spacing: -.025em;
}
.rh-header .rh-mega .rh-panel-title h2 { margin: 0; color: var(--rh-deep); font-size: clamp(23px,2.1vw,30px); font-weight: 800; line-height: 1.13; letter-spacing: -.035em; }
.rh-header .rh-mega .rm-kicker { display: block; margin-top: 5px; color: var(--rh-muted); font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.rh-header .rh-mega .rh-panel-title > a { gap: 5px; min-height: 30px; font-size: 11px; font-weight: 600; }
.rh-header .rh-mega .rh-panel-title > a > svg { width: 15px; height: 15px; }
.rh-header .rh-mega .rh-panel-links.rm-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-content: start; gap: 11px; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3ece9;
  border-radius: 13px;
  background: linear-gradient(150deg,#fff,#f0f7f5);
  color: var(--rh-ink);
  text-decoration: none;
  box-shadow: 0 3px 9px #17393606;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-image { display: block; position: relative; aspect-ratio: 1.35; width: 100%; min-width: 0; overflow: hidden; background: linear-gradient(125deg,#edf5f2,#e4efeb); }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-image > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .18s ease; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-image .rm-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px; background: radial-gradient(ellipse at 70% 10%,#fff 0,transparent 70%); }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-placeholder > svg { width: 100%; height: 100%; max-height: 90px; color: var(--rh-brand); }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-placeholder > img { width: 100%; height: 100%; object-fit: contain; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-label { display: flex; align-items: center; gap: 7px; flex: 1; min-height: 51px; padding: 9px 9px; color: var(--rh-ink); font-size: 11px; font-weight: 700; line-height: 1.35; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-label > span { min-width: 0; flex: 1; overflow-wrap: break-word; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-label > svg { flex: 0 0 14px; width: 14px; height: 14px; margin-left: auto; color: var(--rh-brand); }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card:hover { border-color: #98d6c9; background: #eaf8f2; box-shadow: 0 6px 15px #005c4f12; }
.rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card:hover .rm-card-image > img { transform: scale(1.045); }
.rh-header .rh-mega .rm-promos { display: flex; min-height: 0; min-width: 0; }
.rh-header .rh-mega .rm-promo { display: flex; position: relative; flex: 1; flex-direction: column; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 18px 18px; border-radius: 18px; background: radial-gradient(ellipse at 100% 0,#116c64 0,transparent 65%),linear-gradient(145deg,var(--rh-deep),#064c48); color: #fff; animation: rm-content .16s ease-out; }
.rh-header .rh-mega .rm-promo-eyebrow { display: block; margin-bottom: 9px; color: #a0e1d2; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rh-header .rh-mega .rm-promo h3 { margin: 0 0 17px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
.rh-header .rh-mega .rm-promo > ul { display: grid; flex: 0 0 auto; gap: 10px; margin-bottom: 12px; }
.rh-header .rh-mega .rm-promo > ul > li { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; line-height: 1.4; }
.rh-header .rh-mega .rm-promo > ul > li > svg { width: 16px; height: 16px; color: #5be2c9; }
.rh-header .rh-mega .rm-promo-art { display: flex; align-items: center; justify-content: center; flex: 1 0 115px; min-height: 115px; min-width: 0; margin: 0 -18px 15px; overflow: hidden; }
.rh-header .rh-mega .rm-promo-art > img { display: block; width: 100%; height: 100%; max-height: 175px; object-fit: cover; }
.rh-header .rh-mega .rm-promo-art > svg { display: block; width: 100%; height: 100%; max-height: 175px; color: #8fe1d0; }
.rh-header .rh-mega .rm-promo-cta { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 47px; margin-top: auto; padding: 11px 10px; border: 1px solid #fff; border-radius: 12px; background: #fff; color: var(--rh-deep); font-size: 12px; font-weight: 800; line-height: 1.35; text-align: center; box-shadow: 0 6px 18px #002d301f; transition: background .18s,color .18s; }
.rh-header .rh-mega .rm-promo-cta > svg { width: 16px; height: 16px; }
.rh-header .rh-mega .rm-promo-cta:hover { background: #d5f7ee; color: #004c43; }
.rh-header .rh-mega .rm-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; flex: 0 0 auto; min-width: 0; margin: 0 -18px; padding: 16px 18px 18px; border-top: 1px solid #e6efec; background: linear-gradient(100deg,#f7fcfa,#eff7f4); }
.rh-header .rh-mega .rm-benefits > div { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0 15px; }
.rh-header .rh-mega .rm-benefits > div + div { border-left: 1px solid #d8e7e1; }
.rh-header .rh-mega .rm-benefits > div:first-child { padding-left: 5px; }
.rh-header .rh-mega .rm-benefits > div:last-child { padding-right: 0; }
.rh-header .rh-mega .rm-benefits > div > svg { width: 29px; height: 29px; color: var(--rh-brand); }
.rh-header .rh-mega .rm-benefits strong { display: block; color: var(--rh-ink); font-size: 11px; font-weight: 750; line-height: 1.35; }
.rh-header .rh-mega .rm-benefits small { display: block; margin-top: 4px; color: var(--rh-muted); font-size: 10px; line-height: 1.4; }
.rh-header .rh-mega .rh-search-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 2px; }
.rh-header .rh-mega .rh-search-results a { min-height: 48px; padding: 10px; border: 1px solid #e4eee9; border-radius: 10px; background: #f6fbf9; font-size: 12px; }
.rh-header .rh-mega :is(.rh-group-switch,.rm-card,.rm-promo-cta,.rh-panel-title > a):focus-visible,
.rh-header .rh-mobile-catalog :is(button,a,summary):focus-visible { outline: 3px solid var(--rh-brand); outline-offset: 2px; }
/* Mobile uses the same catalogue data in the existing native drawer. */
.rh-header .rh-mobile-catalog.rm-mobile-catalog-active > details:not([open]) { display: none; }
.rh-header .rh-mobile-catalog > details[open] { border-bottom: 0; }
.rh-header .rh-mobile-catalog > details[open] > summary { margin-bottom: 8px; padding-block: 10px; border-bottom: 1px solid var(--rh-line); }
.rh-header .rh-mobile-catalog .rm-mobile-panel { padding: 1px 2px 18px; }
.rh-header .rh-mobile-catalog .rm-mobile-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid #d9e9e2; border-radius: 10px; background: #f3faf7; color: var(--rh-brand); font-size: 13px; font-weight: 700; }
.rh-header .rh-mobile-catalog .rm-mobile-back > svg { width: 17px; height: 17px; }
.rh-header .rh-mobile-catalog .rm-mobile-title { display:block; margin: 0 0 12px; color: var(--rh-deep); font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.rh-header .rh-mobile-catalog .rm-mobile-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rh-header .rh-mobile-catalog .rm-card-image { aspect-ratio: 1.55; }
.rh-header .rh-mobile-catalog .rm-card-label { min-height: 55px; font-size: 12px; }
.rh-header .rh-mobile-catalog :is(.rm-mobile-cta,.rm-mobile-all) { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--rh-brand); border-radius: 11px; background: var(--rh-brand); color: #fff; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4; }
.rh-header .rh-mobile-catalog .rm-mobile-all { margin-top: 8px; border-color: #d9e8e2; background: #f6fbf9; color: var(--rh-brand); }
.rh-header .rh-mobile-catalog :is(.rm-mobile-cta,.rm-mobile-all) > svg { width: 17px; height: 17px; }
.rh-header .rh-mobile-catalog .rm-mobile-cta { margin:0 0 14px; }
@keyframes rm-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rm-content { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:1200px) and (min-width:901px) {
  .rh-header .rh-mega .rm-layout { grid-template-columns: 180px minmax(0,1fr) 205px; gap: 13px; }
  .rh-header .rh-mega .rh-group-switch { padding-inline: 6px; gap: 7px; font-size: 11px; }
  .rh-header .rh-mega .rh-group-switch > svg:first-child { width: 22px; height: 22px; }
  .rh-header .rh-mega .rh-panel-links.rm-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .rh-header .rh-mega .rm-promo { padding: 18px 14px 14px; }
  .rh-header .rh-mega .rm-promo h3 { font-size: 21px; }
  .rh-header .rh-mega .rm-promo-art { margin-inline: -14px; }
  .rh-header .rh-mega .rm-benefits > div { padding-inline: 9px; gap: 7px; }
  .rh-header .rh-mega .rm-benefits > div > svg { width: 24px; height: 24px; }
}
@media (max-width:900px) and (min-width:768px) {
  .rh-header.header-v35 .rh-mega { padding: 14px 14px 0; }
  .rh-header .rh-mega .rm-layout { grid-template-columns: 164px minmax(0,1fr); gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 14px; }
  .rh-header .rh-mega .rh-mega-side { position: sticky; top: 0; grid-column: 1; grid-row: 1 / span 2; align-self: start; max-height: 100%; padding: 5px; }
  .rh-header .rh-mega .rh-group-switch { min-height: 51px; padding: 9px 5px; gap: 6px; font-size: 10px; }
  .rh-header .rh-mega .rh-group-switch > svg:first-child { width: 21px; height: 21px; }
  .rh-header .rh-mega .rh-group-switch > svg:last-child { width: 12px; height: 12px; flex-basis: 12px; }
  .rh-header .rh-mega .rh-mega-content { grid-column: 2; grid-row: 1; max-height: 410px; min-height: 300px; }
  .rh-header .rh-mega .rh-panel-links.rm-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .rh-header .rh-mega .rh-panel-title h2 { font-size: 24px; }
  .rh-header .rh-mega .rm-promos { grid-column: 2; grid-row: 2; }
  .rh-header .rh-mega .rm-promo { display: grid; grid-template-columns: minmax(0,1fr) 130px; gap: 8px 13px; padding: 17px; }
  .rh-header .rh-mega .rm-promo-eyebrow { grid-column: 1; margin: 0; }
  .rh-header .rh-mega .rm-promo h3 { grid-column: 1; margin: 0; font-size: 20px; }
  .rh-header .rh-mega .rm-promo > ul { grid-column: 1; gap: 6px; margin: 2px 0; }
  .rh-header .rh-mega .rm-promo-art { grid-column: 2; grid-row: 1 / span 3; margin: 0; min-height: 0; border-radius: 10px; }
  .rh-header .rh-mega .rm-promo-art > img { max-height: 180px; }
  .rh-header .rh-mega .rm-promo-cta { grid-column: 1 / -1; min-height: 43px; margin-top: 3px; }
  .rh-header .rh-mega .rm-benefits { margin-inline: -14px; padding: 12px 14px; }
  .rh-header .rh-mega .rm-benefits > div { padding-inline: 7px; gap: 6px; }
  .rh-header .rh-mega .rm-benefits > div > svg { width: 21px; height: 21px; }
  .rh-header .rh-mega .rm-benefits strong { font-size: 10px; }
  .rh-header .rh-mega .rm-benefits small { font-size: 9px; }
}
@media (max-width:767px) {
  .rh-header.header-v35 .rh-mega { display: none; }
  .rh-header .rh-mobile-catalog .rm-card:focus-visible { outline-offset: 1px; }
}
@media (max-width:350px) {
  .rh-header .rh-mobile-catalog .rm-mobile-cards { gap: 7px; }
  .rh-header .rh-mobile-catalog .rm-card-label { gap: 4px; padding: 8px 7px; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .rh-header .rh-mega, .rh-header .rh-mega .rh-panel, .rh-header .rh-mega .rm-promo,
  .rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card,
  .rh-header :is(.rh-mega,.rh-mobile-catalog) .rm-card-image > img,
  .rh-header .rh-catalog-toggle[aria-expanded="true"] > svg:last-child { animation: none; transition: none; }
}
