/* Home page styles — extends styles.css design system */

.home {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1400px 700px at 90% -5%, oklch(0.95 0.04 340 / 0.45), transparent 55%),
    radial-gradient(1100px 600px at -10% 30%, oklch(0.92 0.06 120 / 0.3), transparent 55%),
    var(--canvas);
}

.home-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}
.home-layout > .sidebar {
  grid-area: auto !important;
  grid-column: 1;
  border-right: 1px solid var(--rule);
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  overflow-y: auto;
}
.home-layout > .home-main {
  grid-column: 2;
}

.home-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

@media (max-width: 1000px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-layout > .sidebar {
    position: fixed;
    top: 4px;
    right: 0;
    left: auto;
    width: min(320px, 88vw);
    height: calc(100vh - 60px);
    z-index: 90;
    background: var(--panel);
    border-left: 1px solid var(--rule);
    border-right: none;
    border-top: none;
    transform: translateX(105%);
    transition: transform .3s var(--ease-out);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    padding: 22px 18px 22px 22px;
    grid-row: auto;
    grid-column: auto;
  }
  body.sidebar-open .home-layout > .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open::before {
    content: '';
    position: fixed; inset: 0;
    background: oklch(0.18 0.01 270 / 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 85;
    animation: shareFadeIn .25s var(--ease-out);
  }
  .home-layout > .home-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
}

/* ——————— Profile Hero ——————— */
.profile-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rule);
}
.ph-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 100% 0%, oklch(0.92 0.10 340 / 0.55), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, oklch(0.93 0.08 95 / 0.5), transparent 60%);
  pointer-events: none;
}
.ph-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 36px 40px;
  align-items: center;
}
.ph-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ph-avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--panel);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--rule);
}
.ph-name {
  font-size: 44px;
  line-height: 1.05;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.ph-name em {
  font-style: italic;
  background: linear-gradient(120deg, var(--orchid), var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph-handle {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.ph-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: oklch(0.98 0.01 80);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

/* Profile badges — body shape + armocromia season */
.ph-badges {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-self: center;
  flex-shrink: 0;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.ph-badges:hover {
  border-color: var(--orchid);
  box-shadow: var(--shadow-md);
}
.ph-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--ink-2);
  cursor: help;
  transition: color .2s var(--ease-out), transform .2s var(--ease-out);
  width: 56px;
  height: 52px;
}
.ph-badge:hover {
  transform: translateY(-1px);
  color: var(--ink);
}
.ph-badge > svg { display: block; margin: auto auto 0 auto; }
.ph-badge-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
  margin-top: 4px;
}
.ph-badge:hover .ph-badge-label { color: var(--orchid); }
.ph-badge-season svg { filter: drop-shadow(0 2px 6px oklch(0.2 0.01 270 / 0.12)); }

/* Clickable badge (button reset) */
.ph-badge-clickable {
  font: inherit;
  text-align: inherit;
}
.ph-badge-clickable:hover { transform: translateY(-1px); color: var(--ink); }

/* ——————— Season "sunburst" modal ——————— */
.season-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.18 0.01 270 / 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: shareFadeIn .25s var(--ease-out);
}
.season-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 520px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: sharePop .4s var(--ease-spring);
}
.season-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease-out);
}
.season-close:hover { background: var(--canvas-2); color: var(--ink); }

.season-eyebrow { margin-bottom: 6px; }
.season-title {
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 6px;
}
.season-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 26px;
}

.season-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 22px;
  aspect-ratio: 1;
}
.season-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 40px oklch(0.2 0.01 270 / 0.25));
  animation: season-rotate-in 1.1s var(--ease-spring) both;
}
@keyframes season-rotate-in {
  from { opacity: 0; transform: rotate(-30deg) scale(.85); }
  to   { opacity: 1; transform: rotate(0) scale(1); }
}
.season-photo-wrap {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 0 0 6px var(--panel),
    0 0 0 7px oklch(0.85 0.01 80),
    0 14px 28px -8px oklch(0.2 0.01 270 / 0.35);
  animation: season-pop-in 0.7s var(--ease-spring) 0.15s both;
}
@keyframes season-pop-in {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.season-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.season-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.season-name {
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.season-palette-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.season-sw {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 540px) {
  .season-modal { padding: 28px 20px 22px; }
  .season-title { font-size: 30px; }
  .season-sw { width: 18px; height: 18px; }
}

/* ——————— Body shape modal ——————— */
.bs-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.18 0.01 270 / 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: shareFadeIn .25s var(--ease-out);
}
.bs-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 32px 32px 26px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: sharePop .4s var(--ease-spring);
}
.bs-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease-out);
}
.bs-close:hover { background: var(--canvas-2); color: var(--ink); }

.bs-eyebrow { margin-bottom: 6px; }
.bs-title {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 6px;
}
.bs-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0 0 22px;
}

.bs-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 22px;
  aspect-ratio: 896 / 1216;
  background: var(--canvas-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bs-silhouette-img,
.bs-silhouette-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bs-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: bs-overlay-in .7s var(--ease-spring) .15s both;
}
@keyframes bs-overlay-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.bs-meta { text-align: left; }
.bs-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bs-tip {
  padding: 12px 14px;
  background: var(--canvas-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.bs-tip .t-eyebrow {
  display: block;
  margin-bottom: 6px;
}
.bs-tip p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (max-width: 540px) {
  .bs-modal { padding: 28px 20px 22px; }
  .bs-title { font-size: 28px; }
  .bs-tips { grid-template-columns: 1fr; }
  .bs-stage { max-width: 220px; }
}

.ph-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ph-stat {
  background: var(--panel);
  padding: 14px 6px;
  text-align: center;
}
.ph-stat .n {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ph-stat .l {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.ph-points {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 14px 18px;
}
.ph-points-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.ph-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: oklch(0.94 0.01 80);
  overflow: hidden;
}
.ph-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orchid), var(--peach));
  border-radius: inherit;
  transition: width 600ms var(--ease-out);
}
.ph-points-foot {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 8px;
}
.ph-points-foot strong {
  color: var(--ink);
  font-weight: 500;
}

/* ——————— Shelves (horizontal scrollers) ——————— */
.shelf {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.shelf-title {
  font-size: 36px;
  line-height: 1.05;
  margin: 6px 0 4px;
  letter-spacing: -0.015em;
}
.shelf-title em {
  font-style: italic;
  color: var(--orchid);
}
.shelf-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
  max-width: 560px;
}
.shelf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.shelf-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 2px;
  transition: border-color 180ms, color 180ms;
}
.shelf-cta:hover { color: var(--orchid); border-color: var(--orchid); }
.shelf-arrows {
  display: flex;
  gap: 4px;
}
.shelf-arrows button {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms var(--ease-out);
}
.shelf-arrows button:hover {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.shelf-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.shelf-scroller::-webkit-scrollbar { height: 6px; }
.shelf-scroller::-webkit-scrollbar-track { background: transparent; }
.shelf-scroller::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.01 80);
  border-radius: var(--r-pill);
}

/* ——————— Outfit card (matches Rail "Look della settimana") ——————— */
.home-look {
  flex: 0 0 260px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-look .look-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.home-look .name {
  font-size: 20px !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
}
.home-look .mood {
  font-size: 9.5px !important;
  letter-spacing: 0.14em !important;
  margin-bottom: 10px !important;
}
.home-look .thumbs {
  height: 180px !important;
  border-radius: var(--r-md) !important;
}
.home-look .thumbs .t1 { left: 8%; top: 8px; max-height: 64%; }
.home-look .thumbs .t2 { max-height: 90%; }
.home-look .thumbs .t3 { right: 4%; bottom: 6px; max-height: 56%; }
.home-look .look-why {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.35;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-look .price {
  font-size: 12px !important;
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.home-look .oc-aibadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px 3px 7px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--canvas);
  flex-shrink: 0;
}
.home-look .oc-aibadge .orb {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orchid);
  box-shadow: 0 0 6px var(--orchid);
}
.home-look .oc-heart {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--canvas-2);
  border: 1px solid var(--rule);
  color: var(--orchid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 180ms;
}
.home-look .oc-heart:hover { transform: scale(1.08); }

/* ——————— Trends ——————— */
.trends-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.trends-head {
  text-align: left;
  max-width: 680px;
}
.trends-title {
  font-size: 44px;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  line-height: 1.05;
}
.trends-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--orchid), oklch(0.7 0.18 30));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trends-sub {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0;
  text-wrap: pretty;
}

.trend {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trend-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 240px;
  color: oklch(0.99 0.005 85);
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.th-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, oklch(0.15 0.05 280 / 0.45)),
    radial-gradient(80% 60% at 80% 20%, oklch(0.99 0.005 85 / 0.18), transparent);
  pointer-events: none;
}
.th-inner {
  position: relative;
  padding: 32px 36px;
  max-width: 640px;
  z-index: 2;
}
.th-eyebrow {
  color: oklch(0.99 0.005 85 / 0.78);
}
.th-title {
  font-size: 48px;
  line-height: 1.02;
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.th-blurb {
  font-size: 14.5px;
  margin: 0 0 14px;
  max-width: 460px;
  color: oklch(0.99 0.005 85 / 0.88);
  text-wrap: pretty;
}
.th-swatches {
  display: flex;
  gap: 6px;
}
.th-sw {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid oklch(0.99 0.005 85 / 0.6);
  box-shadow: 0 2px 6px oklch(0 0 0 / 0.2);
}
.th-controls {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.th-arrow {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: oklch(0.99 0.005 85 / 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(0.99 0.005 85 / 0.3);
  color: oklch(0.99 0.005 85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms;
}
.th-arrow:hover {
  background: oklch(0.99 0.005 85 / 0.95);
  color: var(--ink);
}

.trend-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.trend-scroller::-webkit-scrollbar { height: 6px; }
.trend-scroller::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.01 80);
  border-radius: var(--r-pill);
}

.trend-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.ti-img {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--bg, var(--panel-2));
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  overflow: hidden;
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
}
.trend-item:hover .ti-img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ti-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px oklch(0.2 0.01 270 / 0.16));
}
.ti-brand {
  font-size: 17px;
  line-height: 1.1;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.ti-style {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ti-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.ti-new {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.ti-old {
  font-size: 11px;
  color: var(--ink-4);
  text-decoration: line-through;
}

.trend-end {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border: 1.5px dashed var(--rule-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition: all 200ms;
}
.trend-end:hover {
  border-color: var(--orchid);
  color: var(--orchid);
}
.trend-end .t-eyebrow { color: inherit; }
.trend-end .t-serif {
  font-size: 18px;
  line-height: 1.1;
}

/* ——————— Footer ——————— */
.home-foot {
  margin-top: 40px;
  padding: 36px 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.hf-mark {
  font-size: 32px;
  letter-spacing: -0.02em;
}
.hf-sub { font-size: 10px; }
.hf-links { margin-top: 12px; }
.hf-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.hf-links a:hover { color: var(--orchid); border-color: var(--orchid); }

/* ——————— Responsive ——————— */
@media (max-width: 1000px) {
  .home-main { padding: 20px 18px 40px; gap: 44px; }
  .ph-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 22px; }
  .ph-left { gap: 18px; }
  .ph-avatar { width: 78px; height: 78px; }
  .ph-name { font-size: 32px; }
  .ph-stats { grid-template-columns: repeat(4, 1fr); }
  .ph-stat .n { font-size: 22px; }
  .shelf-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .shelf-title { font-size: 28px; }
  .shelf-sub { font-size: 12.5px; }
  .trends-title { font-size: 32px; }
  .th-title { font-size: 32px; }
  .th-inner { padding: 22px 22px; }
  .th-controls { top: 16px; right: 16px; }
  .outfit-card { flex: 0 0 240px; }
  .trend-item { flex: 0 0 180px; }
  .ph-tags { gap: 4px; }
  .ph-tag { font-size: 10px; padding: 3px 7px; }
}

@media (max-width: 640px) {
  .ph-left { flex-direction: column; align-items: flex-start; text-align: left; }
  .ph-stats { grid-template-columns: repeat(2, 1fr); }
  .ph-badges { margin-left: 0; align-self: stretch; }
  .outfit-card { flex: 0 0 220px; }
  .oc-name { font-size: 18px; }
  .trends-head { padding-right: 8px; }
  .shelf-actions .shelf-cta { display: none; }
}
