.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sports-grid {
    gap: 1em;
}

@media (min-width: 1648px) {
    .sports-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* === GENERAL GRID ITEM STYLING === */
.sports-grid .grid-item {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  cursor: pointer;
}

.sports-grid .grid-item.revealed {
  cursor: default;
}

.sports-grid .grid-item::before {
  content: '';
  display: block;
  padding-top: 75%;
}

/* === STATIC IMAGE CONTAINER === */
.sports-grid .grid-item .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.sports-grid .grid-item .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === SLIDE-IN INFO PANEL === */
.sports-grid .grid-item .card-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 9, 9, 0.75);
  transform: translate3d(-100%, 0, 0);
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
  will-change: transform;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75em 0 1em;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  cursor: default;
}

.sports-grid .grid-item:hover .card-info,
.sports-grid .grid-item.revealed .card-info {
  transform: translate3d(0, 0, 0);
}

/* === INFO PANEL CONTENT === */
.card-info-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* === DROPDOWN WRAPPER === */
.product-dropdown-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin: 0 0 1em;
  flex-grow: 1;
  min-height: 0;
  content-visibility: auto;
  contain: layout style paint;
  transform: translateZ(0);
  will-change: opacity;
}

/* === DROPDOWN LIST === */
.product-dropdown {
  list-style: none;
  padding: 1em 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  will-change: transform;
  contain: content;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* === DROPDOWN LINKS === */
.product-dropdown li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  display: block;
  padding: 0 0.5em;
  text-align: center;
}

.product-dropdown li a:hover {
  color: #6b6b6b;
}

/* === CUSTOM SCROLLBAR === */
.product-dropdown::-webkit-scrollbar {
  width: 6px;
}

.product-dropdown::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.product-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

/* === CTA BUTTON === */
.full-uniform-button {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: none;
  padding: 12px 23px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease-in-out;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer !important;
  width: auto;
  max-width: 90%;
  align-self: center;
  margin: 0;
}

.full-uniform-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.full-uniform-button:hover::before {
  transform: scaleX(1);
}

.full-uniform-button:hover {
  border-color: rgba(255, 255, 255, 1);
  color: #fff !important;
}

/* === VERTICAL SPORT LABEL === */
.vertical-sport-label {
  position: absolute;
  top: 50%;
  left: 0.75em;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  background-color: rgba(255, 255, 255, 1);
  color: #090909;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 0.8rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

/* === TITLE BOX (STATIC CARD IN GRID) === */
.title-box,
.title-box * {
  cursor: default !important;
}

.title-box {
  background: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.grid-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 2em;
  color: #090909;
  text-align: center;
}

/* === FINAL GRID BOX (LAST GRID ITEM) === */
.grid-final-box,
.grid-final-box * {
  cursor: default !important;
}

.grid-final-box {
  position: relative;
  background-color: #fff;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
}

.grid-final-box::before {
  content: '';
  display: block;
  padding-top: 75%;
}

.custom-sport-content {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-sport-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 2em;
  color: #090909;
  margin-bottom: 0.5em;
}

.custom-sport-subtitle {
  font-size: 1.25em;
  margin-bottom: 1.5em;
}

.sport-search-wrapper {
  position: relative;
  width: 80%;
  max-width: 250px;
  margin-bottom: 0.75em;
}

#sport-search {
  width: 100%;
  padding: 14px 20px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid #CACACA;
  font-size: 1em;
  outline: none;
  cursor: text !important;
}

#sport-search:focus {
  border-color: #090909;
}

#sport-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 2px solid #090909;
  max-height: 150px;
  overflow-y: auto;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.12),
              0 2px 4px -1px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: rgba(255,255,255,0.3) transparent; /* For Firefox */
}

#sport-results::-webkit-scrollbar {
  width: 6px;
}

#sport-results::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 4px;
}

#sport-results::-webkit-scrollbar-track {
  background: transparent;
}

#sport-results div {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f1f1;
  text-align: left;
  cursor: pointer !important;
  transition: background-color 0.2s ease-in-out;
}

#sport-results div:last-child {
  border-bottom: none;
}

#sport-results div:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.custom-sport-footer {
  font-size: 1em;
}

/* Link styling: only "Contact us" will be underlined as per your site's default style */
.custom-sport-contact-btn {
  text-decoration: underline;
  transition: color 0.3s ease-in-out;
  cursor: pointer !important;
}

/* === MOBILE RESPONSIVE TWEAKS === */
@media (max-width: 400px) {
  .card-info-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
  }

  .product-dropdown-wrapper {
    flex: 1;
    max-height: unset;
  }

  .product-dropdown {
    padding: 1em 0;
    gap: 0.4rem;
    max-height: 100%;
  }

  .product-dropdown li a {
    font-size: 1rem;
    padding: 0 0.25em;
  }

  .full-uniform-button {
    padding: 10px 18px;
    max-width: 100%;
  }
}

/* === FADE SCROLL HINTS === */
.product-dropdown-wrapper::before,
.product-dropdown-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.2em;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.product-dropdown-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.product-dropdown-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}