/* Hoff product shelf — web (matches in-app shelf look) */
.hoff-shelf {
  margin: 28px 0 8px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--ud-border);
}

.hoff-shelf__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ud-text-secondary);
  background: var(--ud-bg-mid);
  border: 1px solid var(--ud-border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.hoff-shelf__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ud-text);
  margin: 0 0 6px;
  line-height: 1.3;
}

.hoff-shelf__disclaimer {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ud-text-muted);
  margin: 0 0 16px;
  max-width: 52rem;
}

.hoff-shelf__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.hoff-shelf__row::-webkit-scrollbar {
  height: 6px;
}
.hoff-shelf__row::-webkit-scrollbar-thumb {
  background: rgba(30, 27, 75, 0.18);
  border-radius: 999px;
}

.hoff-shelf__card {
  flex: 0 0 156px;
  width: 156px;
  scroll-snap-align: start;
  background: var(--ud-surface);
  border: 1px solid var(--ud-border);
  border-radius: 16px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ud-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hoff-shelf__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ud-shadow-md);
  border-color: rgba(108, 92, 231, 0.28);
}

.hoff-shelf__media {
  width: 100%;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ud-bg-mid);
  margin-bottom: 8px;
}

.hoff-shelf__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hoff-shelf__img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ud-text-muted);
  font-size: 0.9rem;
}

.hoff-shelf__name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ud-text);
  min-height: 2.7em;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hoff-shelf__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ud-text);
  margin-bottom: 4px;
}

.hoff-shelf__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ud-primary);
}

.hoff-shelf__admark {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ud-text-secondary);
  margin: 10px 0 0;
}

/* Home: slightly larger cards in a soft panel */
.hoff-shelf--home {
  margin: 0;
  padding: 28px 20px 20px;
  background: var(--ud-surface);
  border: 1px solid var(--ud-border);
  border-radius: var(--ud-radius-xl);
  border-top: 1px solid var(--ud-border);
  box-shadow: var(--ud-shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.hoff-shelf--home .hoff-shelf__card {
  flex-basis: 168px;
  width: 168px;
}

.hoff-shelf--home .hoff-shelf__media {
  height: 118px;
}

.hoff-shelf-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px 32px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hoff-shelf__row--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 4px;
}

.hoff-shelf__row--grid .hoff-shelf__card {
  flex: none;
  width: auto;
}

.hoff-shelf--catalog {
  margin: 0;
  padding: 0;
  border-top: none;
}

.furn-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.furn-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ud-text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.furn-page__lead {
  color: var(--ud-text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 0 28px;
}

.furn-filters {
  margin-bottom: 22px;
}

.furn-filters__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ud-text-muted);
  margin: 0 0 8px;
}

.furn-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.furn-chip {
  appearance: none;
  border: 1px solid var(--ud-border);
  background: var(--ud-surface);
  color: var(--ud-text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.furn-chip:hover {
  border-color: rgba(108, 92, 231, 0.35);
  color: var(--ud-primary);
}

.furn-chip.is-active {
  background: var(--ud-primary);
  border-color: var(--ud-primary);
  color: #fff;
}

.furn-page__note {
  font-size: 0.8rem;
  color: var(--ud-text-muted);
  margin: 20px 0 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hoff-shelf--home {
    padding: 22px 14px 16px;
    border-radius: var(--ud-radius-lg);
  }
  .hoff-shelf__card,
  .hoff-shelf--home .hoff-shelf__card {
    flex-basis: 148px;
    width: 148px;
  }
  .hoff-shelf__row--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
