.gbft-recommendation-section[hidden] {
  display: none !important;
}

.gbft-recommendation-section {
  margin: 40px 10%;
  width:80%;
}

.gbft-recommendation-title {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}

#gbft-recommendation-root {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.gbft-recommendation-card {
  min-width: 0;
}

.gbft-recommendation-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gbft-recommendation-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.gbft-recommendation-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.gbft-recommendation-link:hover .gbft-recommendation-image {
  transform: scale(1.03);
}

.gbft-recommendation-name {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gbft-recommendation-price {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

@media (max-width: 1024px) {
  #gbft-recommendation-root {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gbft-recommendation-section {
    margin: 32px 0;
    padding:5px;
    width:100%;
  }

  .gbft-recommendation-title {
    margin-bottom: 16px;
    font-size: 20px;
  }

  #gbft-recommendation-root {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .gbft-recommendation-card {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .gbft-recommendation-name {
    font-size: 13px;
  }

  .gbft-recommendation-price {
    font-size: 15px;
  }
}
