/* =========================================================
   SOHOGLAM — MARKI (/marki/)
   ========================================================= */

.sg-brands-hero {
  padding: 80px 0 64px;
  background: #f5f1ee;
}

.sg-brands-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--sg-black);
  font-size: clamp(52px, 6vw, 88px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.065em;
}

.sg-brands-hero p {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--sg-muted);
  font-size: 14px;
  line-height: 1.75;
}

.sg-brands-find {
  max-width: 460px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0 18px;
  border: 1px solid #ddd6d2;
  border-radius: 100px;
  background: #fff;
}

.sg-brands-find svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sg-brands-find input {
  width: 100%;
  height: 100%;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 13px;
}

.sg-brands-section-head {
  margin-bottom: 26px;
}

.sg-brands-section-head h2 {
  margin: 0;
  color: var(--sg-black);
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.03;
  font-weight: 520;
  letter-spacing: -.045em;
}

.sg-brands-featured {
  padding: 62px 0 20px;
}

.sg-brands-featured__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.sg-brands-tile {
  min-height: 118px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--sg-line);
  background: var(--sg-soft2);
  color: #282423;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.sg-brands-tile:hover {
  transform: translateY(-3px);
  border-color: #d9d1cc;
  background: var(--sg-soft);
}

.sg-brands-tile strong {
  padding-right: 22px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.sg-brands-tile small {
  margin-top: 4px;
  color: #958d88;
  font-size: 9px;
}

.sg-brands-tile i {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 15px;
  font-style: normal;
}

.sg-brands-az {
  padding: 50px 0 110px;
}

.sg-brands-letters {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 34px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sg-line);
  background: #fff;
}

.sg-brands-letters a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sg-line);
  color: #3c3633;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.sg-brands-letters a:hover {
  border-color: #191919;
  background: #191919;
  color: #fff;
}

.sg-brands-groups {
  columns: 4 220px;
  column-gap: 40px;
}

.sg-brands-group {
  break-inside: avoid;
  margin-bottom: 30px;
  scroll-margin-top: 90px;
}

.sg-brands-group__letter {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sg-line);
  color: var(--sg-rose);
  font-size: 20px;
  font-weight: 600;
}

.sg-brands-group ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sg-brands-group li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-brands-group li[hidden],
.sg-brands-group[hidden] {
  display: none;
}

.sg-brands-group a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: #3e3835;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.sg-brands-group a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sg-brands-group a small {
  color: #aaa29d;
  font-size: 10px;
}

.sg-brands-empty {
  padding: 30px;
  background: var(--sg-soft);
  color: var(--sg-muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .sg-brands-featured__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .sg-brands-hero {
    padding: 55px 0 45px;
  }

  .sg-brands-hero h1 {
    font-size: 46px;
  }

  .sg-brands-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-brands-letters a {
    min-width: 30px;
    height: 30px;
  }

  .sg-brands-groups {
    columns: 2 140px;
    column-gap: 22px;
  }
}
