/* TrendUp Phase 2 — premium marketplace polish
   Scope: shell, commerce views and forms. TrendUp Vidéo keeps its existing UI. */

:root {
  --surface-raised: rgba(255,255,255,.92);
  --surface-tint: #fffaf6;
  --focus-ring: 0 0 0 4px rgba(255,106,0,.14);
}

body {
  background:
    radial-gradient(760px 420px at -8% -10%, rgba(255,220,193,.48), transparent 65%),
    radial-gradient(720px 420px at 108% 0%, rgba(222,231,255,.42), transparent 62%),
    #f4f6f9;
}

.app-shell { box-shadow: 0 0 0 1px rgba(15,23,42,.045), 0 34px 90px rgba(15,23,42,.12); }
.content { padding-top: 20px; }
.topbar { background: rgba(255,255,255,.9); }
.topbar__row { min-height: 62px; }
.brand { transition: transform .2s var(--ease); }
.brand:hover { transform: translateY(-1px); }

.search-row { position: relative; }
.search { min-height: 50px; box-shadow: 0 2px 10px rgba(15,23,42,.025); }
.search:focus-within { box-shadow: var(--focus-ring), 0 5px 18px rgba(15,23,42,.06); }
.filter-btn { min-width: 50px; min-height: 50px; box-shadow: 0 4px 12px rgba(255,106,0,.09); }

.hero { box-shadow: 0 24px 60px rgba(15,23,42,.085); }
.hero__cta .btn:first-child { box-shadow: 0 12px 26px rgba(255,106,0,.3); }
.trust-strip { box-shadow: 0 8px 24px rgba(15,23,42,.035); }
.categories { margin-top: 30px; }
.cat { min-height: 86px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.discovery { margin-top: 34px; }

.listing-grid { gap: 16px; }
.listing-card { box-shadow: 0 3px 14px rgba(15,23,42,.045); }
.listing-card__media { aspect-ratio: 1 / .92; }
.listing-card__body { padding: 14px 14px 16px; }
.listing-card__title { min-height: 38px; }
.listing-card__price { font-size: 16px; }
.listing-card__shop {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  margin-top: 2px; padding: 0; border: 0; background: transparent;
  color: var(--slate); font-size: 11px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.listing-card__shop:hover { color: var(--orange); }
.listing-card__shop svg { width: 13px; height: 13px; color: var(--orange); flex: 0 0 auto; }

/* Product detail and shop pages share the same elevated surface language. */
.pd-grid, .shop-hero, .shop-page__section, .rv-section { animation: phase2Rise .35s var(--ease) both; }
.pd-media { min-height: 260px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.pd-title { font-size: clamp(22px, 5vw, 30px); line-height: 1.15; }
.pd-price { color: var(--orange-700); letter-spacing: -.03em; }
.pd-actions { position: sticky; bottom: 12px; z-index: 5; padding: 8px; margin-left: -8px; margin-right: -8px; border: 1px solid rgba(231,234,240,.9); border-radius: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.shop-hero { box-shadow: var(--shadow-md); }
.shop-hero__banner { height: 160px; }
.shop-hero__actions .btn { min-height: 42px; }

.modal__panel { border: 1px solid rgba(231,234,240,.9); box-shadow: 0 30px 90px rgba(15,23,42,.2); }
.field__control:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: var(--focus-ring); }
.toast { box-shadow: 0 14px 34px rgba(15,23,42,.16); }

@keyframes phase2Rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .content { padding-left: 28px; padding-right: 28px; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .hero { padding: 34px 32px; }
}

@media (min-width: 1024px) {
  .content { padding-left: 36px; padding-right: 36px; }
  .hero { min-height: 370px; }
  .listing-card__media { aspect-ratio: 1 / .9; }
}

@media (max-width: 719px) {
  .content { padding-left: 16px; padding-right: 16px; }
  .topbar__row { padding-left: 16px; padding-right: 16px; }
  .topbar__meta { padding-left: 16px; padding-right: 16px; }
  .brand__wordmark { font-size: 19px; }
  .hero { margin-top: 20px; padding: 24px 20px; border-radius: 22px; }
  .hero h1 { font-size: clamp(27px, 8vw, 35px); }
  .hero__cta { display: grid; grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; min-height: 48px; }
  .trust-strip { gap: 9px; }
  .listing-grid { gap: 11px; }
  .listing-card { border-radius: 18px; }
  .listing-card__media { aspect-ratio: 1 / .94; }
  .listing-card__body { padding: 11px 11px 13px; }
  .listing-card__title { font-size: 13px; min-height: 35px; }
  .listing-card__price { font-size: 14px; }
  .pd-actions { position: static; margin-top: 18px; padding: 0; border: 0; background: transparent; backdrop-filter: none; }
  .shop-hero__banner { height: 128px; }
  .shop-hero__body { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 359px) {
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { display: grid; grid-template-columns: 116px 1fr; }
  .listing-card__media { aspect-ratio: 1; }
  .listing-card__body { align-self: center; }
  .listing-card__fav { width: 30px; height: 30px; top: 7px; right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-grid, .shop-hero, .shop-page__section, .rv-section { animation: none; }
  .listing-card, .cat, .brand { transition: none; }
}
