@import url("golf.css");

.brand-slider-wrapper {
  --brand-item-w: 120px;
  --brand-gap: 16px;
  --brand-visible: 10;

  position: relative;
  width: calc(
    var(--brand-item-w) * var(--brand-visible) + var(--brand-gap) *
      (var(--brand-visible) - 1) + 4px
  );
  max-width: 100%;
  margin: 5rem auto 4.6875rem;
  display: flex;
  align-items: center;
}

.brand-slider-track-outer {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-content: safe center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.brand-slider-track {
  display: flex;
  flex: 0 0 auto;
  gap: var(--brand-gap);
  padding: 4px 2px;
  width: max-content;
}

.brand-filter-btn {
  width: var(--brand-item-w);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.brand-slider-track {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding: 4px 2px;
  width: max-content;
  margin: 0 auto;
}
.brand-slider-track-outer.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.brand-slider-track-outer.is-dragging * {
  pointer-events: none;
}
.brand-slider-track-outer::-webkit-scrollbar {
  display: none;
}

.brand-slider-track {
  display: flex;
  gap: 16px;
  padding: 4px 2px;
  width: max-content;
}

.brand-filter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 120px;
  padding: 0;
  scroll-snap-align: start;
  user-select: none;
}

.brand-logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.brand-logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.brand-filter-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: none;
}

.brand-filter-btn:hover .brand-logo-circle {
  border-color: var(--resort-orange, #d45124);
  transform: translateY(-2px);
}
.brand-filter-btn:hover .brand-filter-name {
  color: #181a20;
}

.brand-filter-btn.active .brand-logo-circle {
  border: 2px solid var(--resort-orange, #d45124);
  background-color: #ffffff;
}
.brand-filter-btn.active .brand-filter-name {
  color: var(--resort-orange, #d45124);
  font-weight: 700;
}

.page-fitness .brand-filter-btn:hover .brand-logo-circle {
  border-color:  #3F4E82;
  transform: translateY(-2px);
}
.page-fitness .brand-filter-btn:hover .brand-filter-name {
  color: #181a20;
}

.page-fitness .brand-filter-btn.active .brand-logo-circle {
  border: 2px solid  #3F4E82;
  background-color: #ffffff;
}
.page-fitness .brand-filter-btn.active .brand-filter-name {
  color:  #3F4E82;
  font-weight: 700;
}

.brand-slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 50%;
  color: #33363d;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.brand-slider-arrow.prev {
  left: -90px;
}
.brand-slider-arrow.next {
  right: -90px;
}
.brand-slider-arrow.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.brand-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.brand-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 280 / 210;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  text-align: center;
}

.brand-catalog-logo {
  width: 100%;
  max-width: 130px;
  height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.brand-catalog-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-catalog-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-catalog-name {
  font-size: 0.88rem;
  color: #222;
}

.brand-catalog-count {
  font-size: 0.875rem;
  color: #d45124;
}

.brand-catalog-card:hover {
  border-color: #CDD1D5;
  transform: translateY(-2px);
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
}

.c-badge.badge-gray {
  background-color: #718096 !important;
}

@media (min-width: 768px) {
  .brand-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .brand-catalog-card {
    padding: 30px 16px;
  }
}

@media (min-width: 851px) {
  .brand-catalog-grid {
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: center;
    gap: 20px;
  }
  .brand-catalog-card {
    width: 280px;
    height: 210px;
    aspect-ratio: auto;
    padding: 40px 20px;
  }
  .brand-catalog-logo {
    max-width: 150px;
    height: 55px;
    margin-bottom: 20px;
  }
  .brand-catalog-name {
    font-size: 1.125rem;
  }
  .brand-catalog-count {
    font-size: 0.85rem;
  }
}

.sub-tab-item.active {
  background-color: var(--resort-orange, #d45124) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #000000 !important;
}

@media screen and (max-width: 850px) {
  .brand-slider-wrapper {
    --brand-item-w: 4.6154rem;
    --brand-gap: 0.7692rem;
    --brand-visible: 10;
    position: relative;
    width: calc(
      var(--brand-item-w) * var(--brand-visible) + var(--brand-gap) *
        (var(--brand-visible) - 1) + 4px
    );
    max-width: 100%;
    margin: 1.5385rem auto 1.5385rem;
    display: flex;
    align-items: center;
  }

  .brand-slider-arrow {
    display: none !important;
  }

  .brand-slider-track {
    display: flex;
    gap: 0.7692rem;
    padding: 0;
    width: max-content;
    padding-top: 0.2rem;
  }

  .brand-filter-btn {
    gap: 0.4615rem;
    width: 4.6154rem;
  }

  .brand-logo-circle {
    width: 4.6154rem;
    height: 4.6154rem;
    padding: 0.3rem;
  }

  .brand-logo-circle span {
    font-size: 0.7692rem !important;
    text-wrap: nowrap;
  }

  .brand-catalog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5385rem;
  }

  .brand-catalog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 280 / 210;
    background-color: #ffffff;
    border: 0.0769rem solid #e2e8f0;
    border-radius: 0.9231rem;
    padding: 1.8462rem 0.9231rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
  }

  .brand-catalog-logo {
    width: 100%;
    max-width: 10rem;
    height: 3.8462rem;
    margin-bottom: 0.9231rem;
  }

  .brand-catalog-name {
    font-size: 1rem;
  }

  .brand-catalog-count {
    font-size: 0.9231rem;
  }
}
