/* ==========================================================================
   product.css — Product page (IP collaboration)
   Depends on tokens / global / components
   ========================================================================== */

/* ==========================================================================
   Page Hero (compact)
   ========================================================================== */
.page-hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--color-bg-muted);
}
@media (max-width: 767px) {
  .page-hero { height: 240px; }
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .page-hero__content { padding: 0 20px; }
}

.page-hero__kicker {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: var(--text-h1);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.page-hero__sub {
  margin-top: 16px;
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 640px;
}

/* ==========================================================================
   Section head / foot (mirrored from home.css — kept here so page works
   without home.css)
   ========================================================================== */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
@media (max-width: 767px) {
  .section-head { margin-bottom: 32px; }
}
.section-head__kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin-bottom: 12px;
}
.section-head__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
}
.section-head__sub {
  margin-top: 12px;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}
.section-foot {
  margin-top: 40px;
  text-align: center;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  background: var(--color-bg-default);
  border-bottom: 1px solid var(--color-divider);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--color-text-tertiary);
  list-style: none;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-text-tertiary);
}
.breadcrumb__item a {
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-standard);
}
.breadcrumb__item a:hover {
  color: var(--color-brand-red);
}
.breadcrumb__item[aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Featured IP — mixed-size mosaic
   ========================================================================== */
.ip-featured__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
@media (max-width: 1023px) {
  .ip-featured__grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 20px; }
}

.ip-feature-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--color-bg-muted);
  color: #FFFFFF;
  min-height: 240px;
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.ip-feature-tile--lg {
  grid-row: span 2;
  min-height: 520px;
}
@media (max-width: 1023px) {
  .ip-feature-tile--lg { grid-row: auto; min-height: 360px; }
  .ip-feature-tile--sm { min-height: 240px; }
}
@media (hover: hover) {
  .ip-feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  .ip-feature-tile:hover .ip-feature-tile__media img {
    transform: scale(1.06);
  }
}

.ip-feature-tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ip-feature-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.ip-feature-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.ip-feature-tile__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
@media (max-width: 767px) {
  .ip-feature-tile__body { padding: 20px; }
}
.ip-feature-tile__kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-yellow);
  margin-bottom: 10px;
}
.ip-feature-tile__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}
.ip-feature-tile--sm .ip-feature-tile__title {
  font-size: var(--text-h3);
}
.ip-feature-tile__desc {
  margin-top: 8px;
  font-size: var(--text-body-sm);
  color: rgba(255,255,255,0.92);
  max-width: 480px;
  line-height: 1.6;
}
.ip-feature-tile__cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-button);
  font-weight: 500;
  color: #FFFFFF;
}
.ip-feature-tile__cta .icon-arrow {
  transition: transform var(--dur-fast) var(--ease-standard);
}
.ip-feature-tile:hover .ip-feature-tile__cta .icon-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   IP Filter bar (visual tabs)
   ========================================================================== */
.ip-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .ip-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 28px;
    padding-bottom: 4px;
  }
}
.ip-filter__tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}
.ip-filter__tab:hover {
  color: var(--color-brand-red);
  border-color: var(--color-brand-red);
}
.ip-filter__tab.is-active,
.ip-filter__tab[aria-selected="true"] {
  background: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
}

/* ==========================================================================
   IP grid (3 / 2 / 1)
   ========================================================================== */
.ip-section {
  background: var(--color-bg-default);
}

.ip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 1023px) {
  .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 767px) {
  .ip-grid { grid-template-columns: 1fr; gap: 20px; }
}

.ip-tile {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
@media (hover: hover) {
  .ip-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  .ip-tile:hover .ip-tile__media img {
    transform: scale(1.04);
  }
}

.ip-tile__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-muted);
}
.ip-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-standard);
}

.ip-tile__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ip-tile__title {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}
.ip-tile__desc {
  margin-top: 12px;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  flex: 1;
}
.ip-tile__cta {
  margin-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-button);
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.ip-tile__cta .icon-arrow { transition: transform var(--dur-fast) var(--ease-standard); }

/* Full-tile link wrapper */
.ip-tile__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.ip-tile__link:hover .ip-tile__cta { color: var(--color-brand-red); }
.ip-tile__link:hover .ip-tile__cta .icon-arrow { transform: translateX(4px); }

/* Disabled "Coming soon" footer button */
.ip-more[disabled] {
  color: var(--color-text-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Sub CTA link cards (News / Contact)
   ========================================================================== */
.ip-links {
  background: var(--color-bg-subtle);
}
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 767px) {
  .link-cards { grid-template-columns: 1fr; }
}

.link-card {
  position: relative;
  display: block;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px;
  color: var(--color-text-primary);
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    color var(--dur-fast);
}
@media (max-width: 767px) {
  .link-card { padding: 28px 24px; }
}
@media (hover: hover) {
  .link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-brand-red);
  }
  .link-card:hover .link-card__arrow {
    transform: translateX(4px);
    color: var(--color-brand-red);
  }
}
.link-card__kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-red);
}
.link-card__title {
  margin-top: 8px;
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-text-primary);
}
.link-card__desc {
  margin-top: 12px;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 440px;
}
.link-card__arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  display: inline-flex;
  color: var(--color-text-tertiary);
  transition:
    transform var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}
@media (max-width: 767px) {
  .link-card__arrow { top: 28px; right: 24px; }
}

/* ==========================================================================
   Red CTA (reused pattern — kept locally for this page)
   ========================================================================== */
.red-cta {
  background: var(--color-brand-red);
  color: var(--color-text-on-red);
  padding: 96px 40px;
  text-align: center;
}
@media (max-width: 767px) {
  .red-cta { padding: 64px 20px; }
}
.red-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.red-cta__sub {
  margin-top: 16px;
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.95);
}
.red-cta__btn { margin-top: 40px; }

/* ==========================================================================
   IP Detail Page — Hero
   ========================================================================== */
.ip-detail-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--color-bg-muted);
}
@media (max-width: 1023px) {
  .ip-detail-hero { height: 400px; }
}
@media (max-width: 767px) {
  .ip-detail-hero { height: 320px; }
}
.ip-detail-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ip-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ip-detail-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.ip-detail-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 56px;
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .ip-detail-hero__content { padding: 0 20px 36px; }
}
.ip-detail-hero__kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-yellow);
  margin-bottom: 12px;
}
.ip-detail-hero__title {
  font-size: var(--text-display);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.ip-detail-hero__tagline {
  margin-top: 16px;
  font-size: var(--text-body-lg);
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* ==========================================================================
   IP About / Intro section
   ========================================================================== */
.ip-about {
  background: var(--color-bg-default);
}
.ip-about__inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.ip-about__lede {
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.ip-about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--text-body);
  line-height: 1.85;
  color: var(--color-text-secondary);
}
.ip-about__body p {
  margin: 0;
}

/* ==========================================================================
   Product Showcase grid (inside detail page)
   ========================================================================== */
.ip-products {
  background: var(--color-bg-subtle);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
  .product-card:hover .product-card__media img {
    transform: scale(1.04);
  }
}
.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-muted);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-standard);
}
.product-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__name {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
  min-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand-red);
  font-feature-settings: "palt" 0, "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.product-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand-red);
  background: var(--color-brand-red-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

/* ==========================================================================
   Other IPs strip (11 thumbnail row)
   ========================================================================== */
.ip-other {
  background: var(--color-bg-default);
}
.ip-other__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1199px) {
  .ip-other__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ip-other__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.ip-other__tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  aspect-ratio: 4 / 3;
  color: #FFFFFF;
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
@media (hover: hover) {
  .ip-other__tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }
  .ip-other__tile:hover img {
    transform: scale(1.08);
  }
}
.ip-other__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.ip-other__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.ip-other__name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ==========================================================================
   IP Detail CTA (bottom, dual-button)
   ========================================================================== */
.ip-detail-cta {
  background: var(--color-bg-subtle);
  text-align: center;
}
.ip-detail-cta__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-primary);
}
.ip-detail-cta__sub {
  margin-top: 12px;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}
.ip-detail-cta__buttons {
  margin-top: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   Product list (miniso.com-style simple 3-col IP grid)
   ========================================================================== */
.product-list {
  padding: 64px 0 120px;
}
@media (max-width: 767px) {
  .product-list { padding: 40px 0 80px; }
}

.product-list .section-head {
  text-align: center;
  margin-bottom: 56px;
}
.product-list .section-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}
.section-head__wink {
  display: inline-flex;
  align-items: center;
  width: 1em;
  aspect-ratio: 60 / 40;
  position: relative;
  top: 0.04em;
}
.section-head__wink svg { width: 100%; height: 100%; display: block; }

/* Grid: 3 cols desktop → 2 cols tablet → 1 col mobile */
.ip-collab-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1023px) {
  .ip-collab-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .ip-collab-grid { grid-template-columns: 1fr; gap: 20px; }
}

.ip-collab {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
@media (hover: hover) {
  .ip-collab:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
  .ip-collab:hover .ip-collab__image img { transform: scale(1.06); }
  .ip-collab:hover .ip-collab__view {
    background: var(--color-brand-red);
    color: #FFFFFF;
    border-color: var(--color-brand-red);
  }
}

.ip-collab__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ip-collab__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-muted);
}
.ip-collab__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms var(--ease-standard);
}

.ip-collab__body {
  padding: 28px 24px 32px;
  text-align: center;
  position: relative;
}

.ip-collab__logo {
  width: 80px;
  height: 48px;
  margin: -52px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.ip-collab__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ip-collab__body--no-logo {
  padding-top: 24px;
}

.ip-collab__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.ip-collab__tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  min-height: 3em;
  margin: 0 0 20px;
}

.ip-collab__view {
  display: inline-block;
  padding: 9px 28px;
  border: 1.5px solid var(--color-text-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  text-transform: none;
  transition: background var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast);
}

/* ==========================================================================
   miniso.com-style LINKAGE layout (big image + overlapping white card,
   alternating left/right every other row)
   ========================================================================== */
.linkage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.linkage-item {
  position: relative;
  margin-bottom: 80px;
  padding-bottom: 100px;
}
.linkage-item:last-child {
  margin-bottom: 0;
  padding-bottom: 40px;
}
@media (max-width: 1023px) {
  .linkage-item { margin-bottom: 60px; padding-bottom: 0; }
}

/* Big image — occupies ~80% width, aligned left on odd rows, right on even.
   Aspect matches source (~2.09–2.34); use 2.1 and object-fit: contain so IP banners show fully. */
.linkage-item__media {
  display: block;
  width: 80%;
  aspect-ratio: 2.1 / 1;
  overflow: hidden;
  background: var(--color-bg-muted);
  position: relative;
  z-index: 0;
}
.linkage-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms var(--ease-standard);
  display: block;
}
@media (hover: hover) {
  .linkage-item__media:hover img { transform: scale(1.06); }
}
.linkage-item:nth-child(even) .linkage-item__media {
  margin-left: auto;
}

/* Overlapping card (28% wide, square) — frosted glass effect */
.linkage-item__card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  max-width: 460px;
  aspect-ratio: 1;
  /* Frosted glass: translucent white + strong blur + subtle inner highlight */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    12px 2px 40px 0 rgba(0, 0, 0, 0.18),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  padding: 30px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  transition: box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .linkage-item__card {
    background: rgba(255, 255, 255, 0.92);
  }
}
@media (hover: hover) {
  .linkage-item:hover .linkage-item__card {
    background: rgba(255, 255, 255, 0.78);
  }
}
.linkage-item:nth-child(even) .linkage-item__card {
  left: 0;
  right: auto;
}

/* Decorative red L-corners on hover (top-left & bottom-right) */
.linkage-item__card::before,
.linkage-item__card::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-color: var(--color-brand-red);
  border-style: solid;
  transition: width 400ms var(--ease-standard), height 400ms var(--ease-standard);
  pointer-events: none;
  box-sizing: border-box;
}
.linkage-item__card::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.linkage-item__card::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}
.linkage-item:hover .linkage-item__card::before,
.linkage-item:hover .linkage-item__card::after {
  width: 100%;
  height: 100%;
}

/* Logo inside card */
.linkage-item__logo {
  height: 110px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.linkage-item__logo img {
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

/* Name (uppercase, bold) */
.linkage-item__name {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

/* Text-only variant (when no logo image) — larger name, extra top spacing */
.linkage-item__card--text-only .linkage-item__name {
  font-size: clamp(26px, 2.6vw, 40px);
  margin-top: 12px;
}

/* Tagline */
.linkage-item__tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 30px;
  max-width: 90%;
}

/* Red pill CTA */
.linkage-item__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  height: 48px;
  padding: 0 28px;
  background: var(--color-brand-red);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.linkage-item__cta a::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform var(--dur-fast);
}
.linkage-item__cta a:hover {
  background: var(--color-brand-red-hover, #E51E2D);
  transform: translateY(-1px);
}
.linkage-item__cta a:hover::after { transform: translateX(3px); }

/* Tablet: reduce card size */
@media (max-width: 1199px) {
  .linkage-item__card { width: 32%; padding: 24px 20px; }
  .linkage-item__logo { height: 72px; }
  .linkage-item__logo img { max-height: 72px; max-width: 160px; }
  .linkage-item__tagline { margin-bottom: 20px; font-size: 14px; }
}

/* Mobile: stack image and card vertically, full width */
@media (max-width: 1023px) {
  .linkage-item__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .linkage-item__card,
  .linkage-item:nth-child(even) .linkage-item__card {
    position: static;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    padding: 32px 24px 36px;
    box-shadow: none;
    border-bottom: 1px solid var(--color-border);
  }
  .linkage-item__card::before,
  .linkage-item__card::after { display: none; }
  .linkage-item__logo { height: 80px; margin-bottom: 8px; }
  .linkage-item__logo img { max-height: 80px; max-width: 200px; }
  .linkage-item__tagline { margin-bottom: 20px; }
}

/* ==========================================================================
   IP Detail Page — miniso.com three-section layout
   Section 1: .page-banner (full-width hero)
   Section 2: .product-intro (kicker + h2 + copy + two unequal images)
   Section 3: .product-showcase (alternating media/text rows)
   ========================================================================== */

/* --- Section 1: page-banner -------------------------------------------- */
.page-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 820;
  max-height: 820px;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-bg-muted);
}
@media (max-width: 1023px) {
  .page-banner { min-height: 360px; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .page-banner { min-height: 280px; aspect-ratio: 4 / 3; }
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px 72px;
  text-align: center;
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .page-banner__overlay { padding: 0 20px 36px; }
}

.page-banner__name {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  margin: 0;
}
.page-banner__tagline {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  max-width: 720px;
}

/* --- Section 2: product-intro ------------------------------------------ */
.product-intro {
  background: var(--color-bg-default);
  padding: 96px 0 64px;
}
@media (max-width: 767px) {
  .product-intro { padding: 56px 0 40px; }
}

.product-intro .container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 767px) {
  .product-intro .container { padding-inline: 20px; }
}

.product-intro__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin: 0 0 20px;
}
.product-intro__kicker img {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.product-intro__msg {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}
@media (max-width: 767px) {
  .product-intro__msg { margin-bottom: 36px; }
}
.product-intro__msg h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  margin: 0 0 24px;
}
.product-intro__msg p {
  font-size: var(--text-body);
  line-height: 1.95;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}
.product-intro__msg p:last-child { margin-bottom: 0; }

/* Two unequal images: left ~600 / right ~862 (about 41% / 59%) */
.product-intro__images {
  display: grid;
  grid-template-columns: 600fr 862fr;
  gap: 20px;
}
@media (max-width: 767px) {
  .product-intro__images { grid-template-columns: 1fr; gap: 14px; }
}

.product-intro__images-left,
.product-intro__images-right {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  aspect-ratio: 4 / 3;
}
.product-intro__images-right { aspect-ratio: 16 / 10; }
@media (max-width: 767px) {
  .product-intro__images-left,
  .product-intro__images-right { aspect-ratio: 16 / 10; }
}
.product-intro__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-standard);
}
@media (hover: hover) {
  .product-intro__images-left:hover img,
  .product-intro__images-right:hover img { transform: scale(1.04); }
}

/* --- Section 3: product-showcase --------------------------------------- */
.product-showcase {
  background: var(--color-bg-default);
  padding: 48px 0 120px;
}
@media (max-width: 767px) {
  .product-showcase { padding: 32px 0 64px; }
}

.product-showcase .container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 40px;
}
@media (max-width: 767px) {
  .product-showcase .container { padding-inline: 20px; }
}

.product-showcase__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
@media (max-width: 767px) {
  .product-showcase__list { gap: 48px; }
}

.product-showcase__item {
  display: flex;
  align-items: center;
  gap: 64px;
}
@media (max-width: 1023px) {
  .product-showcase__item { gap: 40px; }
}
@media (max-width: 767px) {
  .product-showcase__item {
    flex-direction: column;
    gap: 20px;
  }
}

/* Alternating direction — even rows are reversed */
.product-showcase__item:nth-child(even) {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .product-showcase__item:nth-child(even) {
    flex-direction: column;
  }
}

.product-showcase__media {
  flex: 1 1 50%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  aspect-ratio: 4 / 3;
}
.product-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-standard);
}
@media (hover: hover) {
  .product-showcase__media:hover img { transform: scale(1.05); }
}

.product-showcase__content {
  flex: 1 1 50%;
  padding-inline: 20px;
}
@media (max-width: 767px) {
  .product-showcase__content { padding-inline: 0; }
}

.product-showcase__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  margin: 0 0 18px;
}
.product-showcase__desc {
  font-size: var(--text-body);
  line-height: 1.95;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 540px;
}
