/* Archetype T05: Trending Showcase & Commerce (Full-Bleed Asymmetric Grid) */
@layer thm.shell {
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] {
    --thm-arch-topology: "fullbleed-asymmetric-grid";
    --thm-arch-nav-pos: "top";
    --thm-arch-nav-width: 0px;
    --thm-arch-grid-cols: 12;
    --thm-arch-stage-share: 82;
    --thm-space-unit: 14px;
    --thm-row-h: 46px;
    --thm-hitbox-target: 40px;
    --thm-whitespace-target: 0.50;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: var(--thm-space-unit);
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--thm-space-unit);
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell > * {
    min-width: 0;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__nav {
    display: grid;
    gap: calc(var(--thm-space-unit) * 0.75);
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage {
    display: grid;
    grid-template-columns: repeat(var(--thm-arch-grid-cols), minmax(0, 1fr));
    gap: var(--thm-space-unit);
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage > *:first-child {
    grid-column: span 8;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage > *:nth-child(2) {
    grid-column: span 4;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage > *:nth-child(n+3) {
    grid-column: span 12;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage > * {
    min-width: 0;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--thm-space-unit);
  }

  @media (max-width: 960px) {
    [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__stage > * {
      grid-column: span 12;
    }
  }

  @media (max-width: 780px) {
    [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell {
      grid-template-columns: minmax(0, 1fr);
      padding: 10px;
    }
    [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-shell__inspector {
      grid-template-columns: minmax(0, 1fr);
    }
  }
}

@layer thm.surface {
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] {
    --thm-radius-xs: 10px;
    --thm-radius-sm: 16px;
    --thm-radius-md: 24px;
    --thm-radius-lg: 32px;
    --thm-elev-layers: 4;
    --thm-elev-blur: 42px;
    --thm-stroke-width: 1px;
    --thm-backdrop-blur: 10px;
    --thm-dark-l-step: 0.02;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-surface {
    background-color: var(--thm-surface-primary);
    border: var(--thm-stroke-width) solid var(--thm-border-default);
    border-radius: var(--thm-radius-md);
    padding: calc(var(--thm-space-unit) * 1.4);
    box-shadow: var(--thm-elevation-popover);
  }
}

@layer thm.type {
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] {
    --thm-font-class: "display-expressive";
    --thm-type-ratio: 1.414;
    --thm-type-base: 16px;
    --thm-num-variant: normal;
    --thm-heading-weight: 800;
    font-family: var(--thm-font-sans);
    font-size: var(--thm-type-base);
    line-height: 1.48;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] h1,
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] h2,
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] h3 {
    font-weight: var(--thm-heading-weight);
    letter-spacing: -0.03em;
    line-height: 1.24;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-kpi-value {
    font-variant-numeric: var(--thm-num-variant);
    font-weight: var(--thm-heading-weight);
    font-size: calc(var(--thm-type-base) * var(--thm-type-ratio) * var(--thm-type-ratio));
    line-height: 1.15;
  }
}

@layer thm.motion {
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] {
    --thm-ease-family: "cubic-expressive";
    --thm-dur-base: 380ms;
    --thm-uses-spring: 0;
  }

  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] .thm-surface,
  [data-thm-archetype="T05_TRENDING_SHOWCASE_COMMERCE"] button {
    transition-property: transform, opacity, border-color, background-color;
    transition-duration: var(--thm-dur-base);
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
}
