:root {
  --fge-bg: #EAEAEA;
  --fge-input-bg: #EAEAEA;
  --fge-input-bg-hover: #DEDEDE;
  --fge-border: transparent;
  --fge-text: #1F2937;
  --fge-muted: #6B7280;
  --fge-radius: 12px;
  --fge-gap: 16px;
}

.fge-wrap {
  width: 100%;
  background: #ffffff;
  padding: 20px 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.fge-block {
  padding: 0 0 32px;
}

.fge-block+.fge-block {
  border-top: none;
  /* Removed border */
}

.fge-top {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.fge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  min-height: 54px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgb(0 0 0 / 46%);
  color: var(--fge-text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fge-select {
  flex: 1;
  min-width: 200px;
}

.fge-dropdown {
  width: 100%;
  height: 100%;
  min-height: 54px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgb(0 0 0 / 46%);
  background: #ffffff;
  color: var(--fge-text);
  border-radius: 8px;
  padding: 24px 42px 24px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;

  /* Custom Arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239CA3AF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
}

.fge-dropdown:hover {
  background-color: var(--fge-input-bg-hover);
}

.fge-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.fge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fge-gap);
}

.fge-item {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 45px;
  overflow: hidden;
  background: #E5E7EB;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.fge-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .fge-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .fge-top {
    gap: 8px;
  }

  .fge-pill,
  .fge-select {
    flex: 1 1 100%;
    width: 100%;
  }

  .fge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .fge-item {
    border-radius: 16px;
  }

  .fge-dropdown,
  .fge-pill {
    font-size: 13px;
    min-height: 48px;
  }
}