/* Lychee Shop — homepage.
   MJ language: yellow poster hero, black rounded slab for the latest drop,
   borderless gallery cards, yellow newsletter. */

/* === Hero: yellow poster block === */
.ly-hero {
  background: var(--accent); color: var(--ink);
  background-size: cover; background-position: center;
  position: relative; display: flex; flex-direction: column;
}
.ly-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.68));
  opacity: 0; pointer-events: none;
}
.ly-hero--has-image { color: #fff; }
.ly-hero--has-image::before { opacity: 1; }
.ly-hero__inner {
  position: relative; width: 100%;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
}
.ly-hero__inner .ly-eyebrow { color: var(--ink); font-weight: 700; }
.ly-hero--has-image .ly-hero__inner .ly-eyebrow { color: var(--accent); }
.ly-hero__title {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 1.4rem + 5.5vw, 5.5rem);
  letter-spacing: -0.02em; line-height: 1.02;
  max-width: 14ch; margin: 0 0 1rem;
}
.ly-hero__subtitle {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 500;
  color: rgba(0,0,0,.75); max-width: 44ch; margin: 0 0 2rem;
}
.ly-hero--has-image .ly-hero__subtitle { color: rgba(255,255,255,.85); }
.ly-hero__cta { display: flex; gap: .875rem; flex-wrap: wrap; }
.ly-hero .ly-btn:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.ly-hero .ly-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ly-hero .ly-btn--ghost:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.ly-hero--has-image .ly-btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ly-hero--has-image .ly-btn:hover { background: var(--surface); border-color: var(--surface); }
.ly-hero--has-image .ly-btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.ly-hero--has-image .ly-btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--surface); }

/* Black product-type ticker strip under the hero copy. */
.ly-hero__ticker {
  position: relative; overflow: hidden;
  background: var(--ink); padding-block: .9rem;
}
.ly-hero__ticker-track {
  display: flex; width: max-content;
  animation: ly-ticker 36s linear infinite;
}
.ly-hero__ticker:hover .ly-hero__ticker-track { animation-play-state: paused; }
.ly-hero__ticker-item {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .22em; color: #fff; white-space: nowrap;
}
.ly-hero__ticker-item + .ly-hero__ticker-item::before {
  content: "·"; margin-inline: 1.75rem; color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .ly-hero__ticker-track { animation: none; flex-wrap: wrap; }
}

/* === Sections === */
.ly-section { padding-block: clamp(3rem, 6vw, 5rem); }
.ly-section__head { margin-bottom: 2rem; max-width: 44rem; }
.ly-section__head h2 { margin: 0; }
.ly-section__head--split {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ly-view-all {
  font-weight: 600; font-size: .88rem; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: .5rem 1.2rem; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ly-view-all:hover { background: var(--ink); color: #fff; }

/* === Black slab: New Drops panel overlapping the hero === */
.ly-slab { padding-top: 0; }
.ly-slab__panel {
  position: relative; z-index: 1;
  margin-top: calc(-1 * clamp(2rem, 5vw, 4rem));
  background: var(--ink); color: #fff;
  border-radius: var(--radius-slab);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.ly-slab .ly-section__head h2 { color: #fff; }
.ly-slab .ly-eyebrow { color: var(--accent); }
.ly-slab .ly-view-all { border-color: rgba(255,255,255,.5); color: #fff; }
.ly-slab .ly-view-all:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
/* Cards on black: text flips light, gray mount stays. */
.ly-slab .ly-product-card__series { color: rgba(255,255,255,.55); }
.ly-slab .ly-product-card__title { color: #fff; }
.ly-slab .ly-product-card .price { color: #fff; }
.ly-slab .ly-product-card__mto { color: rgba(255,255,255,.5); }
@media ( max-width: 640px ) { .ly-slab__panel { border-radius: 28px; } }

/* === Featured IP Series cards (borderless gallery style) === */
.ly-series-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media ( min-width: 640px ) { .ly-series-grid { grid-template-columns: repeat(2, 1fr); } }
@media ( min-width: 1024px ) { .ly-series-grid { grid-template-columns: repeat(3, 1fr); } }
.ly-series-card { text-decoration: none; color: inherit; display: block; }
.ly-series-card:hover { color: inherit; }
.ly-series-card__media {
  aspect-ratio: 4 / 5; background: var(--ink); position: relative;
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform .18s ease;
}
.ly-series-card:hover .ly-series-card__media { transform: translateY(-4px); }
.ly-series-card__media::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: var(--series-accent);
}
.ly-series-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ly-series-card__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 2rem; text-align: center; color: #fff;
  font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.6rem); text-wrap: balance;
}
.ly-series-card__body { padding: 1rem .25rem 0; }
.ly-series-card__body h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.ly-link { color: var(--ink); font-weight: 600; font-size: .9rem; }
.ly-link:hover { text-decoration-thickness: 2px; }
.ly-series-card--soon { opacity: .55; }
.ly-series-card--soon .ly-series-card__media { display: none; }

/* IP Series hub (/series/) */
.ly-series-hub { padding-block: 2rem 4rem; }
.ly-empty { color: var(--muted); }

/* === New Drops rail inside the slab === */
ul.products.ly-drops {
  overflow-x: auto; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: minmax(62vw, 230px);
  scroll-snap-type: x mandatory; padding-bottom: 1rem;
}
ul.products.ly-drops > li { scroll-snap-align: start; }
@media ( min-width: 1024px ) {
  ul.products.ly-drops { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; scroll-snap-type: none; }
}

/* === Shop By Product Type tiles === */
.ly-types-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media ( min-width: 768px ) { .ly-types-grid { grid-template-columns: repeat(3, 1fr); } }
@media ( min-width: 1024px ) { .ly-types-grid { grid-template-columns: repeat(6, 1fr); } }
.ly-type-card {
  text-decoration: none; color: inherit; background: var(--photo-bg);
  border-radius: var(--radius-card); padding: 1.35rem 1.25rem; position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ly-type-card:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.ly-type-card:hover .ly-type-card__count { color: rgba(255,255,255,.6); }
.ly-type-card h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .25rem; }
.ly-type-card__count { color: var(--muted); font-size: .8rem; }
.ly-type-card__badge {
  display: inline-block; margin-top: .35rem; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent); color: var(--ink);
  border-radius: 999px; padding: .25rem .6rem;
}
.ly-type-card.is-empty { opacity: .75; background: transparent; border: 1.5px dashed var(--hairline-strong); }
.ly-type-card.is-empty:hover { background: var(--photo-bg); color: var(--ink); }

/* === Featured IP story — dark slab === */
.ly-story { background: transparent; }
.ly-story__grid {
  display: grid; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1; margin-top: -1.5rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-slab); padding: clamp(1.75rem, 4vw, 3.5rem);
}
@media ( min-width: 768px ) { .ly-story__grid { grid-template-columns: 1fr 1fr; } }
@media ( max-width: 640px ) { .ly-story__grid { border-radius: 28px; } }
.ly-story__media img { border-radius: var(--radius-card); width: 100%; }
.ly-story__body .ly-eyebrow { color: var(--series-accent); }
.ly-story__body h2 { color: #fff; }
.ly-story__text {
  color: rgba(255,255,255,.75); max-width: 46ch; margin-bottom: 1.5rem;
  border-left: 3px solid var(--series-accent); padding-left: 1.25rem;
}
.ly-story__text p { margin: 0 0 .75em; }
.ly-story .ly-btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ly-story .ly-btn:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }

/* === Newsletter: yellow block === */
.ly-newsletter { background: var(--accent); color: var(--ink); text-align: center; }
.ly-newsletter .ly-eyebrow { color: var(--ink); font-weight: 700; }
.ly-newsletter h2 { margin: 0 0 1.25rem; }
.ly-newsletter__form { display: flex; gap: .625rem; justify-content: center; flex-wrap: wrap; max-width: 34rem; margin-inline: auto; }
.ly-newsletter__form input {
  flex: 1; min-width: 200px; padding: .85rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit;
}
.ly-newsletter__form input::placeholder { color: var(--muted); }
.ly-newsletter__form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
.ly-newsletter__form .ly-btn:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.ly-newsletter__msg { width: 100%; margin: .85rem 0 0; min-height: 1.25rem; font-weight: 600; }
