/* =========================================
   SHOP BY BRAND
========================================= */

.brand-section {
  padding: 38px 20px;
  background: #ffffff;
}

.brand-section__inner {
  width: min(100% - 40px, 1280px);
  margin: 0;
}

/* Section heading */

.brand-section__header {
  margin-bottom: 32px;
  text-align: start;
}

.brand-section__eyebrow {
  margin: 0 0 10px;
  color: #a17c43;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-section__title {
  margin: 0;
  color: #171717;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}

.brand-section__description {
  margin: 10px 0 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.6;
}

/* Brand grid */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Individual brand */

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 76px;
  padding: 18px 34px;
  border: 1px solid #eeeeee;
  background: #ffffff;
  color: #222222;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.brand-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.brand-card__arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  color: #a17c43;
  font-size: 16px;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.brand-card:hover {
  border-color: #d8c6a6;
  background: #fcfaf6;
  color: #171717;
}

.brand-card:hover .brand-card__arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Tablet */

@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 600px) {
  .brand-section {
    padding: 52px 0;
  }

  .brand-section__inner {
    width: min(100% - 28px, 1280px);
  }

  .brand-section__header {
    margin-bottom: 24px;
  }

  .brand-section__description {
    max-width: 280px;
    margin: 9px auto 0;
    font-size: 12px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .brand-card {
    min-height: 66px;
    padding: 14px 20px;
  }

  .brand-card__name {
    font-size: 12px;
  }

  .brand-card__arrow {
    display: none;
  }
}
