/* ============================================================================
   MangaYo! — Kuro Yoru landing
   White ground (the imprint lockup is black ink), MangaYo! type and card
   geometry: Naratif Condensed Black Italic for titles, Gotham Medium for body,
   the grid and the red price bar of /serie-manga-in-abbonamento.
   Everything is scoped under .mangayo-kuroyoru.
   ========================================================================= */

@font-face {
  font-family: 'Naratif Condensed';
  src: url('../fonts/naratif-condensed-black-italic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  size-adjust: 90%;
}
@font-face {
  font-family: 'Gotham Medium';
  src: url('../fonts/gotham-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* The landing is always dark, whatever the storefront theme switch says: Kuro
   Yoru is a night imprint and the page is built for that ground. The lockup stays
   black on its white disc, so it reads either way. */
body[id*="mangayo_kuroyoru_page"] {
  --ky-red: #ff1552;
  --ky-red-press: #e8114a;
  --ky-bg: #1a1a1a;
  --ky-card: #2d2d2d;
  --ky-ink: #fff;
  --ky-muted: #aaa;
  --ky-line: #3a3a3a;
  --ky-cover-shadow: rgba(0, 0, 0, .5);
  --ky-star: 255, 255, 255;
  --ky-star-alpha: 1;
  --ky-display: 'Naratif Condensed', 'Barlow Condensed', sans-serif;
  --ky-ui: 'Gotham Medium', system-ui, -apple-system, sans-serif;
}

/* ---------- PrestaShop wrapper overrides (this page only) ------------------
   The white ground has to be set on the theme's content card as well: the body
   box stops short of the full document height. */
body[id*="mangayo_kuroyoru_page"],
body[id*="mangayo_kuroyoru_page"] #wrapper,
body[id*="mangayo_kuroyoru_page"] #wrapper .container,
body[id*="mangayo_kuroyoru_page"] #content-wrapper,
body[id*="mangayo_kuroyoru_page"] #main,
body[id*="mangayo_kuroyoru_page"] #content,
body[id*="mangayo_kuroyoru_page"] .page-content,
body[id*="mangayo_kuroyoru_page"] .page-content.card {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--ky-bg) !important;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
body[id*="mangayo_kuroyoru_page"] #wrapper nav.breadcrumb {
  display: none;
}

/* ---------- starfield ----------
   The sparkles of the lockup, drifting behind the page. Fixed to the viewport,
   never interactive, and always under the content and the theme chrome. */
#ky-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body[id*="mangayo_kuroyoru_page"] #header,
body[id*="mangayo_kuroyoru_page"] #footer,
body[id*="mangayo_kuroyoru_page"] .footer-container {
  position: relative;
  z-index: 2;
}

/* ---------- page ---------- */
.mangayo-kuroyoru,
.mangayo-kuroyoru *,
.mangayo-kuroyoru *::before,
.mangayo-kuroyoru *::after {
  box-sizing: border-box;
}
.mangayo-kuroyoru {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--ky-ink);
  font-family: var(--ky-ui);
  line-height: 1.6;
  overflow-x: hidden;
}
.mangayo-kuroyoru .ky-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- logo ---------- */
.mangayo-kuroyoru .ky-masthead {
  padding: 72px 0 56px;
  text-align: center;
}
.mangayo-kuroyoru .ky-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
}
/* A portrait lockup inside a circle: cap the height rather than pad the box, or
   the wordmark ends up against the rim. */
.mangayo-kuroyoru .ky-lockup {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
/* The lockup keeps its original black ink in both themes; what makes it readable
   on the dark one is the white disc it sits on, not a colour flip. The sparkles
   are real holes (SVG mask), so they show that disc through. */
.ky-lk-ink { fill: #111; }
.ky-lk-rule { fill: none; stroke: #111; }

.mangayo-kuroyoru .ky-claim {
  margin: 32px auto 0;
  max-width: 38ch;
  font-family: var(--ky-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--ky-ink);
}
.mangayo-kuroyoru .ky-tagline {
  margin: 16px auto 0;
  max-width: 78ch;
  color: var(--ky-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- product grid (same geometry as the subscription series list) --- */
.mangayo-kuroyoru .ky-grid-section {
  padding: 0 0 80px;
}
.mangayo-kuroyoru .ky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.mangayo-kuroyoru .ky-card {
  display: flex;
  flex-direction: column;
  background: var(--ky-card);
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ky-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mangayo-kuroyoru .ky-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 21, 82, 0.18);
  color: var(--ky-ink);
  text-decoration: none;
}

.mangayo-kuroyoru .ky-card-cover {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 12px;
}
.mangayo-kuroyoru .ky-card-cover img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 16px var(--ky-cover-shadow);
  transition: transform 0.25s ease;
}
.mangayo-kuroyoru .ky-card:hover .ky-card-cover img {
  transform: translateY(-6px);
}

.mangayo-kuroyoru .ky-card-info {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.mangayo-kuroyoru .ky-card-title {
  display: block;
  font-family: var(--ky-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
}
.mangayo-kuroyoru .ky-card-stock {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ky-muted);
}
.mangayo-kuroyoru .ky-card-stock.ok { color: #4fbf26; }
.mangayo-kuroyoru .ky-card-stock.few { color: #d2691e; }

.mangayo-kuroyoru .ky-card-price {
  display: block;
  margin-top: auto;
  padding: 14px 16px;
  background: var(--ky-red);
  color: #fff;
  font-family: var(--ky-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background 0.2s ease;
}
.mangayo-kuroyoru .ky-card:hover .ky-card-price {
  background: var(--ky-red-press);
}
.mangayo-kuroyoru .ky-card-price s {
  font-family: var(--ky-ui);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 8px;
}

.mangayo-kuroyoru .ky-empty {
  text-align: center;
  color: var(--ky-muted);
  padding: 60px 0;
}

.mangayo-kuroyoru a:focus-visible {
  outline: 3px solid rgba(255, 21, 82, 0.6);
  outline-offset: 3px;
}


/* ---------- shipping steps ---------- */
.mangayo-kuroyoru .ky-steps-section {
  border-top: 1px solid var(--ky-line);
  padding: 56px 0 80px;
}
.mangayo-kuroyoru .ky-steps-title {
  margin: 0 0 32px;
  font-family: var(--ky-display);
  font-size: 2rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
}
.mangayo-kuroyoru .ky-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mangayo-kuroyoru .ky-step-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ky-red);
}
.mangayo-kuroyoru .ky-step-title {
  margin: 8px 0 10px;
  font-family: var(--ky-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
}
.mangayo-kuroyoru .ky-step-text {
  margin: 0;
  color: var(--ky-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .mangayo-kuroyoru .ky-masthead { padding: 48px 0 36px; }
  .mangayo-kuroyoru .ky-logo { width: min(100%, 260px); }
  .mangayo-kuroyoru .ky-claim { max-width: 26ch; }
  .mangayo-kuroyoru .ky-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mangayo-kuroyoru .ky-card-cover { height: 200px; padding: 16px 12px 8px; }
  .mangayo-kuroyoru .ky-card-info { padding: 12px 12px; }
  .mangayo-kuroyoru .ky-card-title { font-size: 1.1rem; }
  .mangayo-kuroyoru .ky-card-price { font-size: 1.2rem; padding: 12px; }
  .mangayo-kuroyoru .ky-grid-section { padding-bottom: 40px; }
  .mangayo-kuroyoru .ky-steps { grid-template-columns: 1fr; gap: 28px; }
  .mangayo-kuroyoru .ky-steps-section { padding: 40px 0 56px; }
  .mangayo-kuroyoru .ky-steps-title { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mangayo-kuroyoru * { transition: none !important; }
}
