/* Ramki Cards | Product catalogue: Refine Collection alignment and hover fix.
 * Page scope: products.php (.rk-royal-catalogue).
 * Keep product card animations, image framing and all other site sections intact.
 */

/* The shared .glass-card:hover applies translateY(-8px) to every card.
   This form is a control panel, not a hover-lifting product card. */
html body main.rk-royal-catalogue .catalog-layout > aside.catalog-filter.glass-card,
html body main.rk-royal-catalogue .catalog-layout > aside.catalog-filter.glass-card:hover,
html body main.rk-royal-catalogue .catalog-layout > aside.catalog-filter.glass-card:focus-within {
  transform: none !important;
  transition: box-shadow .2s ease, border-color .2s ease !important;
  box-shadow: none !important;
}

/* Separate the filter panel from the hero, and line its edges up with
   the catalogue result grid (the containing .container handles gutters). */
html body main.rk-royal-catalogue .rk-catalogue-content {
  padding-top: 20px !important;
}
html body main.rk-royal-catalogue .catalog-layout > aside.catalog-filter {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px 0 20px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #e8ded2 !important;
  border-radius: 0 !important;
}
html body main.rk-royal-catalogue .catalog-filter > h3 {
  margin: 0 0 15px !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}

/* One predictable row on wide screens, with aligned control bottoms. */
html body main.rk-royal-catalogue .catalog-filter > form {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 240px)) max-content !important;
  gap: 14px !important;
  align-items: end !important;
  justify-content: start !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body main.rk-royal-catalogue .catalog-filter > form > .filter-group {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
html body main.rk-royal-catalogue .catalog-filter > form > .filter-group > label {
  display: block !important;
  margin: 0 0 7px !important;
  line-height: 1.3 !important;
}
html body main.rk-royal-catalogue .catalog-filter > form > .filter-group > :is(input,select) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  align-self: end !important;
  gap: 9px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions > :is(button,a) {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  min-height: 43px !important;
  height: 43px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  transform: none !important;
}

@media (max-width: 1090px) {
  html body main.rk-royal-catalogue .catalog-filter > form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 700px) {
  html body main.rk-royal-catalogue .rk-catalogue-content { padding-top: 14px !important; }
  html body main.rk-royal-catalogue .catalog-layout > aside.catalog-filter { padding: 14px 0 18px !important; }
  html body main.rk-royal-catalogue .catalog-filter > form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions { grid-column: 1 / -1 !important; }
}
@media (max-width: 470px) {
  html body main.rk-royal-catalogue .catalog-filter > form { grid-template-columns: minmax(0, 1fr) !important; }
  html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions { grid-column: 1 !important; width: 100% !important; }
  html body main.rk-royal-catalogue .catalog-filter > form > .filter-actions > :is(button,a) { flex: 1 1 0 !important; }
}
