/* ===== Homepage — Latest Finds ===== */
.home-finds-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.home-finds {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-finds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.home-finds-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.home-finds-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-finds-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hf-tab {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hf-tab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.hf-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: #0a0a0f;
}

.home-finds-all {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home-finds-all:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.home-finds-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hf-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hf-arrow:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hf-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-finds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hf-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hf-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 0;
}

.hf-card-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.hf-card-cart:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hf-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 11px;
  font-weight: 600;
}

.hf-verified svg {
  flex-shrink: 0;
}

.hf-card-image-link {
  display: block;
  text-decoration: none;
}

.hf-card-image {
  position: relative;
  margin: 10px 14px 0;
  aspect-ratio: 1 / 0.82;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.hf-card-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.hf-card-image-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.hf-card:hover .hf-card-image-bg {
  transform: scale(1.03);
}

.hf-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hf-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hf-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.hf-card-title a {
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hf-card-title a:hover {
  color: #fff;
}

.hf-card-category {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
}

.hf-card-batch {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
}

.hf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.hf-card-price {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hf-card-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
}

.hf-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hf-btn-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hf-btn-details:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hf-btn-agent {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.hf-btn-agent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hf-btn-agent:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.home-finds-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hf-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hf-dot.is-active {
  width: 22px;
  border-radius: 100px;
  background: #fff;
}

@media (max-width: 1100px) {
  .home-finds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-finds {
    padding: 0 16px;
  }

  .home-finds-section {
    padding-top: 32px;
    padding-bottom: 48px;
  }
}

@media (max-width: 640px) {
  .home-finds-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .home-finds-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-finds-tabs {
    width: 100%;
  }

  .hf-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
  }

  .home-finds-all {
    width: 100%;
    justify-content: center;
  }

  .home-finds-nav {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .home-finds-grid {
    grid-template-columns: 1fr;
  }

  .hf-card-price {
    font-size: 1.15rem;
  }
}
