/* ════════════════ Discover (consumer marketplace) ════════════════
   Loaded after web-styles.css. Reuses .cats, .sf-grid, .sf-card. */

/* ── Search hero ── */
.web .disc-hero {
  background: linear-gradient(180deg, var(--pri-50) 0%, #fff 100%);
  padding: 56px 0 36px;
  text-align: center;
}
.web .disc-loc {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  box-shadow: var(--sh-1);
}
.web .disc-loc span { color: var(--pri); }
.web .disc-h1 {
  margin: 20px auto 0; max-width: 760px;
  font-size: clamp(34px, 5.4cqi, 60px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.03;
}
.web .disc-sub {
  margin: 16px auto 0; max-width: 560px;
  font-size: 16px; line-height: 1.6; color: var(--muted);
}

/* Search bar */
.web .disc-search {
  margin: 28px auto 0; max-width: 720px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 50px rgba(40,30,80,0.14), 0 0 0 1px var(--line);
}
.web .disc-search-field {
  flex: 1 1 60%; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 52px; min-width: 0;
}
.web .disc-search-field.where { flex: 1 1 40%; border-left: 1px solid var(--line-2); }
.web .disc-search-field input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
}
.web .disc-search-field input::placeholder { color: var(--muted-2); font-weight: 500; }
.web .disc-search-go {
  flex-shrink: 0; height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--pri); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: var(--sh-pri);
}
.web .disc-search-go:hover { background: var(--pri-600); }

/* Popular chips */
.web .disc-pop {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted);
}
.web .disc-pop > span { font-weight: 700; }
.web .disc-pop-chip {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background .15s, border-color .15s;
}
.web .disc-pop-chip:hover { background: var(--pri-50); border-color: var(--pri-100); color: var(--pri); }

/* ── Section row heads ── */
.web .disc-row-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.web .disc-h2 { margin-top: 6px; font-size: clamp(24px, 3cqi, 34px); font-weight: 800; letter-spacing: -0.025em; }
.web .disc-seeall { color: var(--pri); font-weight: 700; font-size: 14px; white-space: nowrap; }
.web .disc-seeall:hover { text-decoration: underline; }

/* ── Category tiles (selectable) ── */
.web .cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); width: 100%;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.web .cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.web .cat-tile.on { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.web .cat-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--g-1, var(--pri)), var(--g-3, var(--pri-700)));
}
.web .cat-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; text-align: center; }

/* ── Premium photo tile variant ── */
.web .cat-tile.has-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0c0620;
  border: none;
  border-radius: 20px;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  box-shadow: 0 4px 20px rgba(20,10,50,0.18);
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s;
}

/* Photo layer — zooms on hover */
.web .cat-tile.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-bg) center / cover no-repeat;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
  z-index: 0;
}
.web .cat-tile.has-photo:hover::before { transform: scale(1.08); }

/* Dark gradient overlay */
.web .cat-tile.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.02) 0%,
    rgba(10,5,28,0.45) 50%,
    rgba(10,5,28,0.88) 100%);
  z-index: 1;
  transition: opacity .25s;
}

/* Icon: frosted glass badge */
.web .cat-tile.has-photo .cat-ic {
  position: relative;
  z-index: 2;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px;
  margin: 11px 0 0 11px;
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff !important;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

/* Name: white text pinned to bottom-left */
.web .cat-tile.has-photo .cat-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-align: left;
  padding: 0 12px 13px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.web .cat-tile.has-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(20,10,50,0.36);
}

/* Selected: purple ring */
.web .cat-tile.has-photo.on {
  box-shadow: 0 0 0 2.5px var(--pri), 0 12px 36px rgba(107,87,255,0.45);
}
.web .cat-tile.has-photo.on::after {
  background: linear-gradient(180deg,
    rgba(107,87,255,0.22) 0%,
    rgba(10,5,28,0.7) 100%);
}

/* ── Help / value strip ── */
.web .disc-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.web .disc-help-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--sh-1); }
.web .disc-help-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--pri-50); }
.web .disc-help-t { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.web .disc-help-d { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.web .disc-cta {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1A0E4A, #6B57FF); color: #fff;
  border-radius: 24px; padding: 28px 32px;
}
.web .disc-cta-t { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.web .disc-cta-s { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.web .disc-cta .btn.primary { background: #fff; color: var(--ink); }
.web .disc-cta .btn.primary:hover { background: #fff; transform: translateY(-1px); }

/* ── Responsive ── */
@container web (max-width: 900px) {
  .web .disc-hero { padding: 36px 0 28px; }
  .web .disc-search { flex-wrap: wrap; gap: 6px; }
  .web .disc-search-field { flex: 1 1 100%; height: 50px; }
  .web .disc-search-field.where { border-left: 0; border-top: 1px solid var(--line-2); }
  .web .disc-search-go { width: 100%; }
  .web .disc-help { grid-template-columns: 1fr; gap: 12px; }
  .web .disc-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .web .disc-cta .btn { width: 100%; }
}
