/*
 * MIGNO TOKYO 6.0
 * Approved hero assets + Amazon-first product discovery.
 */

/* --------------------------------------------------------------------------
 * Hero
 * ----------------------------------------------------------------------- */
.trend-hero-v6 {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  overflow: hidden;
  background: #f8f2fb;
}
.trend-hero-v6 .trend-hero-background {
  position: absolute;
  z-index: -4;
  inset: 0;
}
.trend-hero-v6 .trend-hero-background,
.trend-hero-v6 .trend-hero-background img {
  width: 100%;
  height: 100%;
}
.trend-hero-v6 .trend-hero-background img {
  display: block;
  object-fit: cover;
  object-position: center center;
}
.trend-hero-v6::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.12) 44%, transparent 70%);
  pointer-events: none;
}
.trend-hero-v6 .trend-hero-grid {
  position: relative;
  min-height: 820px;
  display: grid;
  width: min(calc(100% - 80px), 1440px);
  grid-template-columns: minmax(700px, 1.18fr) minmax(520px, .82fr);
  gap: clamp(24px, 3vw, 50px);
  align-items: center;
  padding-top: 132px;
  padding-bottom: 48px;
}
.trend-hero-v6 .trend-hero-copy {
  position: relative;
  z-index: 8;
  max-width: 680px;
}
.trend-hero-v6 .trend-brand-kicker {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
  color: #7f63d8;
  letter-spacing: .17em;
}
.trend-hero-v6 .trend-brand-kicker span {
  font-size: 12px;
  font-weight: 800;
}
.trend-hero-v6 .trend-brand-kicker b {
  color: #4c4651;
  font-size: 12px;
  font-weight: 800;
}
.trend-hero-v6 h1 {
  margin: 0;
  color: #17131b;
  font-size: clamp(52px, 4.05vw, 64px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.055em;
}
.trend-hero-v6 .hero-title-line {
  display: block;
}
.trend-hero-v6 h1 em {
  margin-right: .12em;
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, #ff5b90 5%, #9f6dff 68%, #69b7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.trend-hero-v6 .trend-hero-copy > p {
  max-width: 610px;
  margin: 26px 0 0;
  color: #46404b;
  font-size: 15px;
  font-weight: 550;
  line-height: 2;
}
.trend-hero-v6 .hero-search {
  width: min(100%, 620px);
  height: 70px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 8px 7px 22px;
  border: 1px solid rgba(83, 59, 105, .09);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 56px rgba(88, 60, 127, .14);
  backdrop-filter: blur(15px);
}
.trend-hero-v6 .hero-search > svg {
  flex: 0 0 auto;
  width: 23px;
  color: #8e8792;
}
.trend-hero-v6 .hero-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #28222d;
  font-size: 15px;
}
.trend-hero-v6 .hero-search button {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5f91, #9671ff 55%, #65b9ff);
  box-shadow: 0 12px 28px rgba(167, 87, 213, .26);
}
.trend-hero-v6 .hero-search button svg {
  width: 23px;
}
.trend-hero-v6 .hero-trends {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.trend-hero-v6 .hero-trends button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 93, 144, .28);
  border-radius: 999px;
  color: #e54c7d;
  background: rgba(255,255,255,.67);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(82, 56, 101, .05);
}
.trend-hero-v6 .hero-trends button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, #ff6798, #9a75ff);
}

.trend-hero-v6 .trend-hero-visual {
  position: relative;
  min-height: 640px;
  align-self: end;
}
.phone-shell-v6 {
  position: absolute;
  z-index: 5;
  right: -8px;
  bottom: -205px;
  width: 520px;
  aspect-ratio: 760 / 1290;
  transform: rotate(5.8deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 40px 50px rgba(52, 42, 71, .24));
}
.phone-frame-v6 {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.phone-screen-v6 {
  position: absolute;
  z-index: 2;
  top: 4.5%;
  right: 10.4%;
  bottom: 5.6%;
  left: 10.2%;
  overflow: hidden;
  padding: 61px 31px 26px;
  border-radius: 48px;
  background: #fff;
  color: #17131b;
  transform: translateZ(0);
}
.phone-screen-v6 .phone-topbar,
.phone-screen-v6 .phone-tabs,
.phone-screen-v6 .phone-ranking-list,
.phone-screen-v6 .phone-more {
  transform: rotate(-.35deg);
}
.phone-screen-v6 .phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-screen-v6 .phone-topbar b {
  font-size: 20px;
  letter-spacing: -.03em;
}
.phone-screen-v6 .phone-topbar span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #faf8fb;
}
.phone-screen-v6 .phone-topbar svg {
  width: 18px;
}
.phone-screen-v6 .phone-tabs {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeaf0;
}
.phone-screen-v6 .phone-tabs span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #99909e;
  background: #f7f5f8;
  font-size: 9px;
  font-weight: 700;
}
.phone-screen-v6 .phone-tabs .active {
  color: #f14f82;
  background: #fff0f5;
}
.phone-screen-v6 .phone-ranking-list {
  display: grid;
}
.phone-screen-v6 .phone-rank-row {
  min-height: 124px;
  display: grid;
  grid-template-columns: 28px 76px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0ecf2;
  color: inherit;
}
.phone-screen-v6 .phone-rank-number {
  width: 28px;
  height: 37px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 17%, 91% 79%, 50% 100%, 9% 79%, 0 17%);
  color: #fff;
  background: #a691ff;
  font-size: 12px;
  font-weight: 900;
}
.phone-screen-v6 .phone-rank-number.rank-1 { background: linear-gradient(160deg,#ffb63b,#ff7c7c); }
.phone-screen-v6 .phone-rank-number.rank-2 { background: linear-gradient(160deg,#a6a9ff,#756df4); }
.phone-screen-v6 .phone-rank-number.rank-3 { background: linear-gradient(160deg,#f3b389,#d68769); }
.phone-screen-v6 .phone-rank-image {
  width: 76px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: #f7f4f7;
}
.phone-screen-v6 .phone-rank-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.phone-screen-v6 .phone-rank-copy {
  min-width: 0;
  align-self: center;
}
.phone-screen-v6 .phone-rank-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: #25202a;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.phone-screen-v6 .phone-rank-copy small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #938b98;
  font-size: 8px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-screen-v6 .phone-rank-score {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: -31px;
  color: #ff4e83;
  font-size: 10px;
  font-weight: 900;
}
.phone-screen-v6 .phone-rank-score svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.phone-screen-v6 .phone-more {
  width: 152px;
  height: 42px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ffd0df;
  border-radius: 999px;
  color: #ef5582;
  font-size: 10px;
  font-weight: 800;
}
.phone-screen-v6 .phone-more svg { width: 13px; }

.hero-v6-object,
.hero-v6-social,
.hero-v6-sparkles {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.hero-v6-object { z-index: 7; }
.hero-v6-social { z-index: 6; filter: drop-shadow(0 14px 22px rgba(67,52,87,.15)); }
.hero-v6-heart { left: 1%; top: 110px; width: 122px; }
.hero-v6-hash { left: 4%; bottom: 86px; width: 92px; }
.hero-v6-arrow { right: -2%; bottom: 118px; width: 122px; }
.hero-v6-instagram { right: 1%; top: 56px; width: 76px; }
.hero-v6-x { right: 0; top: 224px; width: 72px; }
.hero-v6-tiktok { right: 2%; bottom: 44px; width: 78px; }
.hero-v6-sparkles { z-index: -1; width: 390px; opacity: .54; }
.hero-v6-sparkles-a { right: 6%; top: 6%; }
.hero-v6-sparkles-b { left: 35%; bottom: -24%; transform: rotate(18deg); opacity: .35; }

/* --------------------------------------------------------------------------
 * Amazon-first product cards
 * ----------------------------------------------------------------------- */
.product-card-v6 {
  overflow: hidden;
  border: 1px solid rgba(63, 47, 75, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(66, 47, 86, .08);
}
.product-card-v6 .product-image-wrap {
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--product-soft) 82%, white), #fff 76%);
}
.product-card-v6 .product-image-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
}
.product-card-v6 .product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .28s ease;
}
.product-card-v6:hover .product-image-link img { transform: translateY(-4px) scale(1.025); }
.product-card-v6 .product-card-body {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 20px 20px 19px;
}
.product-card-v6 h3 {
  min-height: 52px;
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
}
.product-card-v6 h3 a { color: #211b25; }
.product-card-v6 .product-price { margin-top: 5px; }
.product-card-v6 .product-stat-row { margin-top: 17px; }
.product-card-v6 .product-tags { margin-top: 13px; }
.product-card-v6 .product-reason {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-commerce-links {
  margin-top: auto;
  padding-top: 17px;
  display: grid;
  gap: 9px;
}
.product-commerce-links .affiliate-label {
  margin: 0 0 -4px 2px;
  color: #9a8e84;
  font-size: 8px;
  font-weight: 800;
}
.product-amazon-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e7ad10;
  border-radius: 13px;
  color: #211b12;
  background: #ffd814;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(190, 137, 0, .13);
}
.product-amazon-button:hover { color: #17120b; background: #f7ca00; }
.product-amazon-button svg,
.product-official-link svg { width: 14px; height: 14px; }
.product-official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #837989;
  font-size: 10px;
  font-weight: 750;
}
.product-official-link:hover { color: #e34f7b; }
.product-placeholder-image { opacity: .85; }

/* Seasonal product cards follow the same commerce priority. */
.season-product-wrap {
  min-width: 0;
  display: grid;
  gap: 6px;
  text-align: center;
}
.season-product-wrap .season-product { min-width: 0; }
.season-product-wrap .season-product span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.season-official-link {
  color: #8d8492;
  font-size: 9px;
  font-weight: 700;
}
.season-official-link:hover { color: #ec4f7f; }
.compact-rank-image img { width: 100%; height: 100%; object-fit: contain; }

/* Product details: Amazon is primary, official site is secondary. */
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-actions-v6 { align-items: end; }
.amazon-button-primary {
  min-width: 220px;
  min-height: 54px;
  border-radius: 14px;
  font-size: 13px;
}
.official-detail-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #766e7a;
  font-size: 11px;
  font-weight: 750;
}
.official-detail-link svg { width: 15px; }

/* --------------------------------------------------------------------------
 * Responsive
 * ----------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .trend-hero-v6 .trend-hero-grid {
    width: min(calc(100% - 56px), 1320px);
    grid-template-columns: minmax(590px, 1.05fr) minmax(470px, .95fr);
  }
  .trend-hero-v6 h1 { font-size: clamp(48px, 4.2vw, 63px); }
  .phone-shell-v6 { right: 15px; width: 475px; bottom: -175px; }
  .hero-v6-heart { left: -1%; width: 104px; }
  .hero-v6-hash { left: 2%; width: 80px; }
}

@media (max-width: 1040px) {
  .trend-hero-v6 { min-height: 1110px; }
  .trend-hero-v6 .trend-hero-grid {
    min-height: 1110px;
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 128px;
  }
  .trend-hero-v6 .trend-hero-copy { max-width: 760px; }
  .trend-hero-v6 .trend-hero-visual { min-height: 600px; margin-top: -10px; }
  .phone-shell-v6 { right: 9%; bottom: -170px; width: 450px; }
  .hero-v6-heart { left: 18%; top: 42px; }
  .hero-v6-hash { left: 14%; bottom: 72px; }
  .hero-v6-instagram { right: 10%; }
  .hero-v6-x { right: 7%; }
  .hero-v6-tiktok { right: 10%; }
  .hero-v6-arrow { right: 6%; }
}

@media (max-width: 760px) {
  .trend-hero-v6 {
    min-height: 990px;
  }
  .trend-hero-v6::after {
    background: linear-gradient(180deg, rgba(255,255,255,.13), transparent 55%);
  }
  .trend-hero-v6 .trend-hero-background img {
    object-position: center top;
  }
  .trend-hero-v6 .trend-hero-grid {
    width: min(calc(100% - 30px), 1260px);
    min-height: 990px;
    padding-top: 102px;
    padding-bottom: 0;
  }
  .trend-hero-v6 .trend-brand-kicker { margin-bottom: 20px; }
  .trend-hero-v6 .trend-brand-kicker span,
  .trend-hero-v6 .trend-brand-kicker b { font-size: 9px; }
  .trend-hero-v6 h1 {
    font-size: clamp(35px, 10.2vw, 43px);
    line-height: 1.38;
  }
  .trend-hero-v6 .trend-hero-copy > p {
    max-width: 355px;
    margin-top: 17px;
    font-size: 11px;
    line-height: 1.9;
  }
  .trend-hero-v6 .hero-search {
    height: 58px;
    margin-top: 22px;
    padding-left: 17px;
  }
  .trend-hero-v6 .hero-search input { font-size: 12px; }
  .trend-hero-v6 .hero-search button { width: 46px; height: 46px; }
  .trend-hero-v6 .hero-trends {
    flex-wrap: nowrap;
    margin-right: -15px;
    overflow-x: auto;
    padding-right: 15px;
    scrollbar-width: none;
  }
  .trend-hero-v6 .hero-trends::-webkit-scrollbar { display: none; }
  .trend-hero-v6 .hero-trends button { flex: 0 0 auto; min-height: 34px; font-size: 9px; }
  .trend-hero-v6 .trend-hero-visual { min-height: 455px; margin-top: 4px; }
  .phone-shell-v6 {
    right: -46px;
    bottom: -74px;
    width: 300px;
    transform: rotate(4.3deg);
  }
  .phone-screen-v6 {
    padding: 34px 18px 15px;
    border-radius: 31px;
  }
  .phone-screen-v6 .phone-topbar b { font-size: 12px; }
  .phone-screen-v6 .phone-topbar span { width: 24px; height: 24px; }
  .phone-screen-v6 .phone-topbar svg { width: 14px; }
  .phone-screen-v6 .phone-tabs { gap: 3px; margin-top: 8px; padding-bottom: 8px; }
  .phone-screen-v6 .phone-tabs span { padding: 4px 6px; font-size: 5px; }
  .phone-screen-v6 .phone-tabs span:nth-child(4) { display: none; }
  .phone-screen-v6 .phone-rank-row {
    min-height: 73px;
    grid-template-columns: 17px 42px minmax(0,1fr);
    gap: 6px;
    padding: 6px 0;
  }
  .phone-screen-v6 .phone-rank-number { width: 17px; height: 23px; font-size: 6px; }
  .phone-screen-v6 .phone-rank-image { width: 42px; height: 49px; border-radius: 8px; }
  .phone-screen-v6 .phone-rank-copy b { font-size: 7px; }
  .phone-screen-v6 .phone-rank-copy small { margin-top: 2px; font-size: 4.6px; }
  .phone-screen-v6 .phone-rank-score { margin-top: -21px; font-size: 5px; }
  .phone-screen-v6 .phone-rank-score svg { width: 7px; height: 7px; }
  .phone-screen-v6 .phone-more { width: 94px; height: 25px; margin-top: 7px; font-size: 5px; }
  .hero-v6-heart { left: 0; top: 52px; width: 70px; }
  .hero-v6-hash { left: 4%; bottom: 36px; width: 58px; }
  .hero-v6-instagram { right: 0; top: 18px; width: 50px; }
  .hero-v6-x { right: 0; top: 111px; width: 47px; }
  .hero-v6-tiktok,
  .hero-v6-arrow { display: none; }
  .hero-v6-sparkles-a { width: 240px; right: -20%; top: 2%; }
  .hero-v6-sparkles-b { display: none; }

  .product-card-v6 .product-card-body { min-height: 365px; padding: 14px 13px 13px; }
  .product-card-v6 .product-image-link { padding: 18px; }
  .product-card-v6 h3 { min-height: 47px; font-size: 13px; }
  .product-card-v6 .product-card-meta { font-size: 8px; }
  .product-amazon-button { min-height: 43px; font-size: 10px; }
  .product-official-link { font-size: 9px; }
  .detail-actions-v6 { display: grid; width: 100%; }
  .amazon-action-wrap,
  .amazon-button-primary { width: 100%; }
  .official-detail-link { justify-content: center; }
}

@media (max-width: 430px) {
  .trend-hero-v6 { min-height: 945px; }
  .trend-hero-v6 .trend-hero-grid { min-height: 945px; }
  .trend-hero-v6 h1 { font-size: 37px; }
  .phone-shell-v6 { right: -51px; bottom: -62px; width: 286px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-v6-heart { animation: migno-float 5.8s ease-in-out infinite; }
  .hero-v6-hash { animation: migno-float 6.5s ease-in-out -1.5s infinite; }
  .hero-v6-arrow { animation: migno-float 7s ease-in-out -2s infinite; }
}
@keyframes migno-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
