.commerce-home .home-brands.section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #fff8fa 0%, #fcf1f5 55%, #fffafc 100%) !important;
}
.commerce-home .home-brands .container { position: relative; }
.commerce-home .home-brands__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .65fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}
.commerce-home .home-brands__heading .eyebrow { margin-bottom: 13px; color: #a53f70; font-size: .76rem; letter-spacing: .18em; }
.commerce-home .home-brands__heading h2 {
  max-width: 750px;
  margin: 0;
  color: #281c24;
  font-size: clamp(2.8rem, 4.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.commerce-home .home-brands__intro { padding-bottom: 8px; }
.commerce-home .home-brands__intro p { max-width: 330px; margin: 0 0 16px; color: #73636e; font-size: 1rem; line-height: 1.6; }
.commerce-home .home-brands__intro a { display: inline-flex; align-items: center; gap: 12px; color: #9f2d64; font-size: .9rem; font-weight: 750; text-decoration: none; }
.commerce-home .home-brands__intro a span { font-size: 1.15rem; transition: transform .2s ease; }
.commerce-home .home-brands__intro a:hover span { transform: translate(3px, -3px); }
.commerce-home .home-brands .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.commerce-home .home-brands .brand-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 205px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid #ecdde3 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #fff, #fffafd) !important;
  box-shadow: 0 10px 28px rgba(76, 33, 56, .045) !important;
  color: #31242d;
  text-align: left;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.commerce-home .home-brands .brand-grid a:hover,
.commerce-home .home-brands .brand-grid a:focus-visible { transform: translateY(-4px); border-color: #d99db9 !important; box-shadow: 0 17px 32px rgba(105, 42, 72, .12) !important; }
.commerce-home .home-brands__number { position: absolute; top: 21px; right: 22px; color: #bba6b1; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.commerce-home .home-brands__mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #efd5e1; border-radius: 15px; background: #fff0f6; color: #9d3b6b; font: 600 1.55rem Georgia, serif; }
.commerce-home .home-brands .brand-grid strong { display: block; width: 100%; margin: 18px 0 16px; font-size: clamp(1.05rem, 1.3vw, 1.28rem); font-weight: 750; line-height: 1.25; }
.commerce-home .home-brands .brand-grid img { align-self: flex-start; max-width: 180px; height: 56px; margin: 14px 0; object-fit: contain; object-position: left center; }
.commerce-home .home-brands__card-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 11px; border-top: 1px solid #f2e8ed; color: #9b5173; }
.commerce-home .home-brands__card-bottom small { font-size: .76rem; font-weight: 700; }
.commerce-home .home-brands__card-bottom > span { font-size: 1.1rem; line-height: 1; }
@media (max-width: 991px) {
  .commerce-home .home-brands__heading { grid-template-columns: 1fr; gap: 15px; }
  .commerce-home .home-brands .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .commerce-home .home-brands .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .commerce-home .home-brands .brand-grid a { min-height: 168px; padding: 15px; }
  .commerce-home .home-brands__mark { width: 39px; height: 39px; border-radius: 12px; font-size: 1.25rem; }
  .commerce-home .home-brands__number { top: 16px; right: 15px; }
  .commerce-home .home-brands .brand-grid strong { margin: 12px 0; font-size: 1rem; }
}

/* Compact homepage brand cards while keeping their mark, name, and action clear. */
.commerce-home .home-brands .brand-grid a { min-height: 148px; padding: 15px 18px; border-radius: 16px !important; }
.commerce-home .home-brands__mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.28rem; }
.commerce-home .home-brands .brand-grid strong { margin: 10px 0 8px; font-size: 1.05rem; }
.commerce-home .home-brands__card-bottom { padding-top: 8px; }
@media (max-width: 767px) {
  .commerce-home .home-brands .brand-grid a { min-height: 132px; padding: 12px; }
  .commerce-home .home-brands__mark { width: 35px; height: 35px; font-size: 1.1rem; }
  .commerce-home .home-brands .brand-grid strong { margin: 7px 0 5px; font-size: .94rem; }
  .commerce-home .home-brands__card-bottom small { font-size: .69rem; }
}
@media (max-width: 420px) {
  .commerce-home .home-brands .brand-grid a { min-height: 124px; padding: 10px; }
}
