import type { Product } from "@/data/products";

export type GallerySlide = {
  src: string;
  /** Varias fotos en un solo marco */
  mosaic?: string[];
  /** feature3 = 1 ancha arriba + 2 abajo; grid = cuadrícula uniforme */
  mosaicLayout?: "feature3" | "grid";
  caption?: string;
  /** cover = llena el marco; contain = ficha técnica sin recortar */
  fit?: "cover" | "contain";
  /** specs = tabla de especificaciones dentro del rollo */
  kind?: "image" | "specs";
  /** Filas de ficha técnica (solo kind=specs) */
  specs?: { label: string; value: string }[];
};

export type ColorWay = {
  name: string;
  tagline: string;
  /** Swatches hex for multi-color logos */
  swatches: string[];
  slides: GallerySlide[];
};

const BASE = "/products/slides/sporty-elegance";
const SET_POLO_BASE = "/products/slides";

export type TechSpecRow = { label: string; value: string };

/** Ficha técnica — Vestido Sporty Elegance */
export const SPORTY_ELEGANCE_SPECS: TechSpecRow[] = [
  { label: "Silueta", value: "Vestido sin mangas, ajuste entallado" },
  { label: "Cierre", value: "Cremallera frontal completa, tipo deportivo" },
  { label: "Cuello", value: "Camisero, con vivo en contraste" },
  { label: "Falda", value: "Integrada, líneas limpias y femeninas" },
  { label: "Tejido", value: "Técnico premium, transpirable" },
  { label: "Cuidado", value: "Lavado a máquina en frío, no usar secadora" },
];

/** Ficha técnica — Set Polo & Falda Club 1976 */
export const SET_POLO_FALDA_SPECS: TechSpecRow[] = [
  { label: "Silueta", value: "Femenina, proporciones equilibradas" },
  { label: "Cierre", value: "Metálico premium, discreto" },
  { label: "Detalles", value: "Vivos en contraste y bordado OT" },
  { label: "Falda", value: "Corte moderno, abertura lateral" },
  { label: "Tejido", value: "Técnico premium, caída natural" },
  { label: "Cuidado", value: "Lavado a máquina en frío, no usar secadora" },
];

/** Tela técnica — Enterizo Deportivo Diagonal */
export const ENTERIZO_DEPORTIVO_SPECS: TechSpecRow[] = [
  { label: "Tacto", value: "Suave y respirable" },
  { label: "Secado", value: "Rápido" },
  { label: "Elongación", value: "Alta" },
  { label: "Protección", value: "UV" },
  { label: "Opacidad", value: "No se transparente" },
];

/** Ficha técnica — Bermuda y camisa (hombre) */
export const BERMUDA_CAMISA_SPECS: TechSpecRow[] = [
  { label: "Polo", value: "Cuello clásico con vivo en contraste" },
  { label: "Cierre", value: "Frontal con cremallera" },
  { label: "Logo polo", value: "OT bordado en el pecho" },
  { label: "Manga", value: "Rib con contraste" },
  { label: "Short", value: "Cintura elástica con cordón interno" },
  { label: "Detalles short", value: "Vivos laterales y bolsillos laterales" },
  { label: "Logo short", value: "OT bordado en pierna" },
  { label: "Bajo", value: "Limpio con acabado deportivo" },
  { label: "Tejido", value: "Poliéster técnico premium" },
  { label: "Rendimiento", value: "Ligero, transpirable, secado rápido" },
];

export const POLOS_HOMBRE_SPECS: TechSpecRow[] = [
  { label: "Cuello", value: "Clásico con vivo en contraste" },
  { label: "Cierre", value: "Frontal con cremallera" },
  { label: "Logo", value: "OT bordado en el pecho" },
  { label: "Manga", value: "Rib con contraste" },
  { label: "Tejido", value: "Poliéster técnico premium" },
  { label: "Rendimiento", value: "Ligero, transpirable, secado rápido" },
];

export const CHAQUETA_HOMBRE_SPECS: TechSpecRow[] = [
  { label: "Cierre", value: "Frontal completo con cremallera" },
  { label: "Cuello", value: "Alto tipo funnel" },
  { label: "Logo", value: "OT bordado en el pecho" },
  { label: "Acabados", value: "Puños y bajo elásticos" },
  { label: "Bolsillos", value: "Laterales tipo welt" },
  { label: "Tejido", value: "Textura waffle premium" },
];

export const SET_COMPLETO_SPECS: TechSpecRow[] = [
  { label: "Incluye", value: "Chaqueta + polo + falda" },
  { label: "Chaqueta", value: "Cierre completo, logo OT" },
  { label: "Polo", value: "Cierre frontal con vivos en contraste" },
  { label: "Falda", value: "Vivos laterales y logo OT" },
  { label: "Tejido", value: "Técnico premium Club 1976" },
];

export const SET_PAREJA_SPECS: TechSpecRow[] = [
  { label: "Concepto", value: "Looks coordinados él y ella" },
  { label: "Match", value: "Colores y logo OT a juego" },
  { label: "Piezas", value: "Chaquetas OT + tops + bottoms" },
  { label: "Uso", value: "Para la cancha y después del partido" },
  { label: "Colección", value: "Club 1976" },
];

export const PACKAGING_OT_SPECS: TechSpecRow[] = [
  { label: "Caja", value: "Rígida con motivo de cancha" },
  { label: "Pouch", value: "Premium — se cierra como pelota" },
  { label: "Capacidad", value: "Cabe varias prendas" },
  { label: "Materiales", value: "Responsables / premium" },
];

export const ACCESORIO_BASICO_SPECS: TechSpecRow[] = [
  { label: "Logo", value: "OT bordado o estampado" },
  { label: "Acabado", value: "Premium Club 1976" },
  { label: "Talla", value: "Única" },
];

export function getProductTechSpecs(
  productOrSlug: Product | string
): TechSpecRow[] | null {
  const slug =
    typeof productOrSlug === "string" ? productOrSlug : productOrSlug.slug;
  if (slug === "vestido-sporty-elegance") return SPORTY_ELEGANCE_SPECS;
  if (slug === "set-polo-falda-club-1976") return SET_POLO_FALDA_SPECS;
  if (slug === "enterizo-deportivo-diagonal") return ENTERIZO_DEPORTIVO_SPECS;
  if (slug === "enterizo-diagonal-falda") return ENTERIZO_DEPORTIVO_SPECS;
  if (slug === "truzas") return ENTERIZO_DEPORTIVO_SPECS;
  if (slug === "faldas") return ENTERIZO_DEPORTIVO_SPECS;
  if (slug === "polos") return ENTERIZO_DEPORTIVO_SPECS;
  if (slug === "bermuda-y-camisa") return BERMUDA_CAMISA_SPECS;
  if (slug === "polos-hombre") return POLOS_HOMBRE_SPECS;
  if (slug === "conjunto-dos-piezas-chaqueta") return CHAQUETA_HOMBRE_SPECS;
  if (slug === "set-completo-club-1976") return SET_COMPLETO_SPECS;
  if (slug === "set-pareja-club-1976") return SET_PAREJA_SPECS;
  if (slug === "packaging-ot") return PACKAGING_OT_SPECS;
  if (
    slug === "visor-ot" ||
    slug === "bolso-duffel-ot" ||
    slug === "gorra-ot" ||
    slug === "neceser-ot"
  )
    return ACCESORIO_BASICO_SPECS;

  if (typeof productOrSlug !== "string") {
    const editorial = productOrSlug.editorialSpecs;
    if (editorial?.length) return editorial;
  }
  return null;
}

export function getProductTechHeading(slug: string): string | null {
  if (
    slug === "enterizo-deportivo-diagonal" ||
    slug === "enterizo-diagonal-falda" ||
    slug === "truzas" ||
    slug === "faldas" ||
    slug === "polos"
  ) {
    return "Tela técnica premium";
  }
  if (
    slug === "bermuda-y-camisa" ||
    slug === "polos-hombre" ||
    slug === "conjunto-dos-piezas-chaqueta" ||
    slug === "set-completo-club-1976" ||
    slug === "set-pareja-club-1976" ||
    slug === "packaging-ot" ||
    slug === "visor-ot" ||
    slug === "bolso-duffel-ot" ||
    slug === "gorra-ot" ||
    slug === "neceser-ot"
  )
    return "Ficha técnica";
  return null;
}

/** Slides actuales del set — contain para mostrar cuerpo completo sin recortar */
const setPoloFaldaSlides: GallerySlide[] = [
  { src: `${SET_POLO_BASE}/set-polo-falda-01.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-02.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-03.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-04.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-05.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-06.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-07.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-08.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-09.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-10.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-01.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-02.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-03.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-04.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-05.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-06.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-07.jpg`, fit: "contain" },
  { src: `${SET_POLO_BASE}/set-polo-falda-detail-08.jpg`, fit: "contain" },
];

/** Vestido Sporty Elegance — colores y rollos del PDF Club 1976 */
export const sportyEleganceColorWays: ColorWay[] = [
  {
    name: "Rojo Clásico & Marino",
    tagline: "Pasión y energía con un toque sofisticado.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      {
        src: `${BASE}/rojo-marino/01-hero.png`,
        fit: "cover",
      },
      {
        src: `${BASE}/rojo-marino/00-torso.png`,
        mosaic: [
          `${BASE}/rojo-marino/00-torso.png`,
          `${BASE}/rojo-marino/02-cuello.png`,
          `${BASE}/rojo-marino/04-falda.png`,
        ],
        mosaicLayout: "feature3",
        caption: "Detalles del diseño.",
        fit: "cover",
      },
    ],
  },
  {
    name: "Azul Marino & Blanco / Rojo",
    tagline: "Equilibrio clásico con acentos deportivos.",
    swatches: ["#1A237E", "#F5F5F5"],
    slides: [
      {
        src: `${BASE}/azul-marino/01-hero.png`,
        fit: "cover",
      },
      {
        src: `${BASE}/azul-marino/00-torso.png`,
        mosaic: [
          `${BASE}/azul-marino/00-torso.png`,
          `${BASE}/azul-marino/02-cuello.png`,
          `${BASE}/azul-marino/03-falda.png`,
        ],
        mosaicLayout: "feature3",
        caption: "Detalles del diseño.",
        fit: "cover",
      },
    ],
  },
  {
    name: "Blanco & Rojo / Azul",
    tagline: "Fresco, luminoso y lleno de carácter.",
    swatches: ["#B71C1C", "#F5F5F5"],
    slides: [
      {
        src: `${BASE}/blanco-rojo-azul/01-hero.png`,
        fit: "cover",
      },
    ],
  },
  {
    name: "Rojo Clásico & Verde Tenis",
    tagline: "Pasión clásica con un toque deportivo.",
    swatches: ["#B71C1C", "#002D20"],
    slides: [
      {
        src: `${BASE}/rojo-verde/01-hero.png`,
        fit: "cover",
      },
      {
        src: `${BASE}/rojo-verde/00-torso.png`,
        mosaic: [
          `${BASE}/rojo-verde/00-torso.png`,
          `${BASE}/rojo-verde/02-cuello.png`,
          `${BASE}/rojo-verde/03-falda.png`,
        ],
        mosaicLayout: "feature3",
        caption: "Detalles del diseño.",
        fit: "cover",
      },
    ],
  },
  {
    name: "Azul Marino & Verde Tenis",
    tagline: "Sobriedad elegante. Espíritu deportivo.",
    swatches: ["#1A237E", "#002D20"],
    slides: [
      {
        src: `${BASE}/azul-marino-verde/01-hero.png`,
        fit: "cover",
      },
    ],
  },
  {
    name: "Blanco & Verde Tenis",
    tagline: "Pureza atemporal. Estilo impecable.",
    swatches: ["#002D20", "#F5F5F5"],
    slides: [
      {
        src: `${BASE}/blanco-verde/01-hero.png`,
        fit: "cover",
      },
    ],
  },
];

/** Set Polo & Falda Club 1976 — bolitas combinadas (2 colores) */
export const setPoloFaldaColorWays: ColorWay[] = [
  {
    name: "Beige Arena & Blanco",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/beige-arena-blanco/01-hero.png`,
        fit: "contain",
      },
      {
        src: `${SET_POLO_BASE}/set-polo-falda/beige-arena-blanco/00-torso.png`,
        mosaic: [
          `${SET_POLO_BASE}/set-polo-falda/beige-arena-blanco/00-torso.png`,
          `${SET_POLO_BASE}/set-polo-falda/beige-arena-blanco/02-falda.png`,
          `${SET_POLO_BASE}/set-polo-falda/beige-arena-blanco/03-tejido.png`,
        ],
        mosaicLayout: "feature3",
        caption: "Detalles del diseño.",
        fit: "cover",
      },
    ],
  },
  {
    name: "Verde Tenis & Blanco",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/verde-tenis-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Azul Marino & Blanco",
    tagline: "Atrevido, limpio y muy versátil.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/azul-marino-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Vino Tinto & Crema",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#F3EFE5"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/vino-tinto-crema/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Blanco & Verde Salvia",
    tagline: "Ligero, natural y moderno.",
    swatches: ["#9CAF88", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/blanco-verde-salvia/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Negro & Blanco",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/negro-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Vino Tinto & Marino",
    tagline: "Intenso, serio y con carácter.",
    swatches: ["#6B1E2E", "#1A237E"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/vino-tinto-marino/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Vino Tinto & Blanco",
    tagline: "Profundo, limpio y sofisticado.",
    swatches: ["#6B1E2E", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/vino-tinto-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Blanco & Verde Tenis",
    tagline: "Fresco, luminoso y deportivo.",
    swatches: ["#002D20", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/01-hero.png`,
        fit: "contain",
      },
      {
        src: `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/00-cierre.png`,
        mosaic: [
          `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/00-cierre.png`,
          `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/02-bordado.png`,
          `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/03-abertura.png`,
          `${SET_POLO_BASE}/set-polo-falda/blanco-verde-tenis/04-bolsillo.png`,
        ],
        mosaicLayout: "grid",
        fit: "cover",
      },
    ],
  },
  {
    name: "Blanco & Rojo / Marino",
    tagline: "Vivo, clásico y versátil.",
    swatches: ["#B71C1C", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/blanco-rojo-marino/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Rojo Clásico & Marino",
    tagline: "Pasión y elegancia en contraste.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/rojo-clasico-marino/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Azul Marino & Blanco / Rojo",
    tagline: "Equilibrio náutico con acento.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${SET_POLO_BASE}/set-polo-falda/azul-marino-blanco-rojo/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

const ENTERIZO_COLOR = "/products/slides/enterizo-deportivo";
const ENTERIZO_FALDA_COLOR = "/products/slides/enterizo-diagonal-falda";

/** Enterizo Deportivo Diagonal — bolitas combinadas (2 colores) */
export const enterizoDeportivoColorWays: ColorWay[] = [
  {
    name: "Beige Arena & Blanco",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/beige-arena-blanco/01-hero.png`,
        fit: "contain",
      },
      {
        src: `${ENTERIZO_COLOR}/beige-arena-blanco/02-espalda.png`,
        mosaic: [
          `${ENTERIZO_COLOR}/beige-arena-blanco/02-espalda.png`,
          `${ENTERIZO_COLOR}/beige-arena-blanco/03-detalle.png`,
          `${ENTERIZO_COLOR}/beige-arena-blanco/04-tejido.png`,
        ],
        mosaicLayout: "feature3",
        caption: "Detalles del diseño.",
        fit: "cover",
      },
    ],
  },
  {
    name: "Verde Tenis & Blanco",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/verde-tenis-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Azul Marino & Blanco",
    tagline: "Atemporal, limpio y muy versátil.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/azul-marino-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Vino Tinto & Crema",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#F3EFE5"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/vino-tinto-crema/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Blanco & Verde Salvia",
    tagline: "Ligero, natural y moderno.",
    swatches: ["#FFFFFF", "#9CAF88"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/blanco-verde-salvia/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Negro & Blanco",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_COLOR}/negro-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

/** Enterizo Diagonal Falda — bolitas + fotos por color */
export const enterizoDiagonalFaldaColorWays: ColorWay[] = [
  {
    name: "Beige Arena & Blanco",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/beige-arena-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Verde Tenis & Blanco",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/verde-tenis-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Azul Marino & Blanco",
    tagline: "Atemporal, limpio y muy versátil.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/azul-marino-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Vino Tinto & Crema",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#F3EFE5"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/vino-tinto-crema/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Blanco & Verde Salvia",
    tagline: "Ligero, natural y moderno.",
    swatches: ["#FFFFFF", "#9CAF88"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/blanco-verde-salvia/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Negro & Blanco",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#FFFFFF"],
    slides: [
      {
        src: `${ENTERIZO_FALDA_COLOR}/negro-blanco/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

/** Chaqueta OT Classic — bolitas de color */
const CHAQUETA_BASE = "/products/slides/chaqueta-ot-classic";

export const chaquetaOtClassicColorWays: ColorWay[] = [
  {
    name: "Azul Marino",
    tagline: "Atemporal, limpio y con presencia.",
    swatches: ["#1A237E", "#1A237E"],
    slides: [
      { src: `${CHAQUETA_BASE}/azul-marino/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco Roto",
    tagline: "Luminoso, suave y sofisticado.",
    swatches: ["#F3EFE5", "#FFFFFF"],
    slides: [
      { src: `${CHAQUETA_BASE}/blanco-roto/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Rojo",
    tagline: "Icónico, intenso y con carácter.",
    swatches: ["#C62828", "#B71C1C"],
    slides: [{ src: `${CHAQUETA_BASE}/rojo/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Verde Oscuro",
    tagline: "Clásico OT, fresco y elegante.",
    swatches: ["#002D20", "#002D20"],
    slides: [
      { src: `${CHAQUETA_BASE}/verde-oscuro/01-hero.png`, fit: "contain" },
    ],
  },
];

/** Truzas — bolitas de color */
const TRUZAS_BASE = "/products/slides/truzas";

export const truzasColorWays: ColorWay[] = [
  {
    name: "Beige Arena",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#C4B59A"],
    slides: [{ src: `${TRUZAS_BASE}/beige-arena/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Verde Tenis",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#002D20"],
    slides: [{ src: `${TRUZAS_BASE}/verde-tenis/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Azul Marino",
    tagline: "Atemporal, limpio y versátil.",
    swatches: ["#1A237E", "#1A237E"],
    slides: [{ src: `${TRUZAS_BASE}/azul-marino/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Vino Tinto",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#6B1E2E"],
    slides: [{ src: `${TRUZAS_BASE}/vino-tinto/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Blanco",
    tagline: "Ligero, limpio y moderno.",
    swatches: ["#F5F5F5", "#FFFFFF"],
    slides: [{ src: `${TRUZAS_BASE}/blanco/01-hero.png`, fit: "contain" }],
  },
  {
    name: "Negro",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#141414"],
    slides: [{ src: `${TRUZAS_BASE}/negro/01-hero.png`, fit: "contain" }],
  },
];

/** Faldas — mismos 6 colores que Truzas; galería solo 2 fotos reales */
const FALDAS_BASE = "/products/slides/faldas";
const FALDAS_GALLERY: GallerySlide[] = [
  { src: `${FALDAS_BASE}/beige-arena/01-hero.png`, fit: "contain" },
  { src: `${FALDAS_BASE}/vino-tinto/01-hero.png`, fit: "contain" },
];

export const faldasColorWays: ColorWay[] = [
  {
    name: "Beige Arena",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#C4B59A"],
    slides: FALDAS_GALLERY,
  },
  {
    name: "Verde Tenis",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#002D20"],
    slides: FALDAS_GALLERY,
  },
  {
    name: "Azul Marino",
    tagline: "Atemporal, limpio y versátil.",
    swatches: ["#1A237E", "#1A237E"],
    slides: FALDAS_GALLERY,
  },
  {
    name: "Vino Tinto",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#6B1E2E"],
    slides: FALDAS_GALLERY,
  },
  {
    name: "Blanco",
    tagline: "Ligero, limpio y moderno.",
    swatches: ["#F5F5F5", "#FFFFFF"],
    slides: FALDAS_GALLERY,
  },
  {
    name: "Negro",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#141414"],
    slides: FALDAS_GALLERY,
  },
];

/** Polos mujer — 12 combinaciones (listas Club + Sporty) */
const POLOS_BASE = "/products/slides/polos";

export const polosColorWays: ColorWay[] = [
  {
    name: "Beige Arena & Blanco",
    tagline: "Neutro, cálido y sofisticado.",
    swatches: ["#C4B59A", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/beige-arena-blanco/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Verde Tenis & Blanco",
    tagline: "Clásico, fresco y elegante.",
    swatches: ["#002D20", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/verde-tenis-blanco/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Azul Marino & Blanco",
    tagline: "Atemporal, limpio y muy versátil.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/azul-marino-blanco/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Vino Tinto & Crema",
    tagline: "Femenino, profundo y elegante.",
    swatches: ["#6B1E2E", "#F3EFE5"],
    slides: [
      { src: `${POLOS_BASE}/vino-tinto-crema/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco & Verde Salvia",
    tagline: "Ligero, natural y moderno.",
    swatches: ["#9CAF88", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/blanco-verde-salvia/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Negro & Blanco",
    tagline: "Minimalista, fuerte y chic.",
    swatches: ["#141414", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/negro-blanco/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Vino Tinto & Marino",
    tagline: "Intenso, serio y con carácter.",
    swatches: ["#6B1E2E", "#1A237E"],
    slides: [
      { src: `${POLOS_BASE}/vino-tinto-marino/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Vino Tinto & Blanco",
    tagline: "Profundo, limpio y sofisticado.",
    swatches: ["#6B1E2E", "#FFFFFF"],
    slides: [
      { src: `${POLOS_BASE}/vino-tinto-blanco/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco & Verde Tenis",
    tagline: "Fresco, luminoso y deportivo.",
    swatches: ["#FFFFFF", "#002D20"],
    slides: [
      { src: `${POLOS_BASE}/blanco-verde-tenis/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco & Rojo / Marino",
    tagline: "Vivo, clásico y versátil.",
    swatches: ["#FFFFFF", "#B71C1C"],
    slides: [
      { src: `${POLOS_BASE}/blanco-rojo-marino/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Rojo Clásico & Marino",
    tagline: "Pasión y elegancia en contraste.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      { src: `${POLOS_BASE}/rojo-clasico-marino/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Azul Marino & Blanco / Rojo",
    tagline: "Equilibrio náutico con acento.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${POLOS_BASE}/azul-marino-blanco-rojo/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

/** Conjunto dos piezas chaqueta — hombre */
const CONJUNTO_CHAQUETA_BASE =
  "/products/slides/conjunto-dos-piezas-chaqueta";

export const conjuntoDosPiezasChaquetaColorWays: ColorWay[] = [
  {
    name: "Azul Marino",
    tagline: "Profundo, clásico y seguro.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${CONJUNTO_CHAQUETA_BASE}/azul-marino/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Blanco Marfil",
    tagline: "Limpio, premium y sofisticado.",
    swatches: ["#F3EFE5", "#002D20"],
    slides: [
      {
        src: `${CONJUNTO_CHAQUETA_BASE}/blanco-marfil/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Verde Oscuro",
    tagline: "Elegante, serio y con carácter.",
    swatches: ["#1B3A2F", "#F3EFE5"],
    slides: [
      {
        src: `${CONJUNTO_CHAQUETA_BASE}/verde-oscuro/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

/** Bermuda y camisa — bolitas de 2 colores (como Mujer) */
const BERMUDA_CAMISA_BASE = "/products/slides/bermuda-y-camisa";

export const bermudaYCamisaColorWays: ColorWay[] = [
  {
    name: "White Court",
    tagline: "Limpio, clásico y atemporal.",
    swatches: ["#FFFFFF", "#1A237E"],
    slides: [
      { src: `${BERMUDA_CAMISA_BASE}/white-court/01-hero.png`, fit: "contain" },
      {
        src: `${BERMUDA_CAMISA_BASE}/white-court/03-cierre.png`,
        mosaic: [
          `${BERMUDA_CAMISA_BASE}/white-court/03-cierre.png`,
          `${BERMUDA_CAMISA_BASE}/white-court/02-bermuda.png`,
        ],
        mosaicLayout: "grid",
        fit: "cover",
      },
    ],
  },
  {
    name: "Classic Red",
    tagline: "Clásico, masculino y atemporal.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      { src: `${BERMUDA_CAMISA_BASE}/classic-red/01-hero.png`, fit: "contain" },
      {
        src: `${BERMUDA_CAMISA_BASE}/classic-red/02-bermuda.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Navy Heritage",
    tagline: "Herencia del club, limpia y segura.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${BERMUDA_CAMISA_BASE}/navy-heritage/01-hero.png`,
        fit: "contain",
      },
      {
        src: `${BERMUDA_CAMISA_BASE}/navy-heritage/02-bermuda.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Burgundy & White",
    tagline: "Elegante, limpio y con carácter.",
    swatches: ["#6B1E2E", "#FFFFFF"],
    slides: [
      {
        src: `${BERMUDA_CAMISA_BASE}/burgundy-white/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "White & Tennis Green",
    tagline: "Fresco, deportivo y moderno.",
    swatches: ["#FFFFFF", "#002D20"],
    slides: [
      {
        src: `${BERMUDA_CAMISA_BASE}/white-tennis-green/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

const POLOS_HOMBRE_BASE = "/products/slides/polos-hombre";

export const polosHombreColorWays: ColorWay[] = [
  {
    name: "White Court",
    tagline: "Limpio, clásico y atemporal.",
    swatches: ["#FFFFFF", "#1A237E"],
    slides: [
      { src: `${POLOS_HOMBRE_BASE}/white-court/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Classic Red",
    tagline: "Clásico, masculino y atemporal.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      { src: `${POLOS_HOMBRE_BASE}/classic-red/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Navy Heritage",
    tagline: "Herencia del club, limpia y segura.",
    swatches: ["#1A237E", "#FFFFFF"],
    slides: [
      {
        src: `${POLOS_HOMBRE_BASE}/navy-heritage/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "Burgundy & White",
    tagline: "Elegante, limpio y con carácter.",
    swatches: ["#6B1E2E", "#FFFFFF"],
    slides: [
      {
        src: `${POLOS_HOMBRE_BASE}/burgundy-white/01-hero.png`,
        fit: "contain",
      },
    ],
  },
  {
    name: "White & Tennis Green",
    tagline: "Fresco, deportivo y moderno.",
    swatches: ["#FFFFFF", "#002D20"],
    slides: [
      {
        src: `${POLOS_HOMBRE_BASE}/white-tennis-green/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

const SET_COMPLETO_BASE = "/products/slides/set-completo-club-1976";

export const setCompletoClub1976ColorWays: ColorWay[] = [
  {
    name: "Rojo & Marino",
    tagline: "Intenso, clásico y con carácter.",
    swatches: ["#B71C1C", "#1A237E"],
    slides: [
      { src: `${SET_COMPLETO_BASE}/rojo-marino/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Marino & Marfil",
    tagline: "Elegante, limpio y atemporal.",
    swatches: ["#1A237E", "#F3EFE5"],
    slides: [
      { src: `${SET_COMPLETO_BASE}/marino-marfil/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco & Rojo",
    tagline: "Fresco, deportivo y sofisticado.",
    swatches: ["#FFFFFF", "#B71C1C"],
    slides: [
      { src: `${SET_COMPLETO_BASE}/blanco-rojo/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Marino & Verde",
    tagline: "Profundo, premium y seguro.",
    swatches: ["#1A237E", "#002D20"],
    slides: [
      { src: `${SET_COMPLETO_BASE}/marino-verde/01-hero.png`, fit: "contain" },
    ],
  },
  {
    name: "Blanco & Verde Oscuro",
    tagline: "Limpio, moderno y Club 1976.",
    swatches: ["#FFFFFF", "#1B3A2F"],
    slides: [
      {
        src: `${SET_COMPLETO_BASE}/blanco-verde-oscuro/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

const SET_PAREJA_BASE = "/products/slides/set-pareja-club-1976";

export const setParejaClub1976ColorWays: ColorWay[] = [
  {
    name: "Verde Oscuro & Marfil",
    tagline: "Match en la cancha. Él y ella.",
    swatches: ["#1B3A2F", "#F3EFE5"],
    slides: [
      {
        src: `${SET_PAREJA_BASE}/verde-oscuro-marfil/01-hero.png`,
        fit: "contain",
      },
    ],
  },
];

const ACC_BASE = "/products/slides/accesorios";

export const packagingOtColorWays: ColorWay[] = [
  {
    name: "Verde Oscuro & Marfil",
    tagline: "Classic by origin. Timeless by choice.",
    swatches: ["#1B3A2F", "#F3EFE5"],
    slides: [
      { src: `${ACC_BASE}/packaging-ot/01-board.png`, fit: "contain" },
      { src: `${ACC_BASE}/packaging-ot/02-match-point.png`, fit: "contain" },
    ],
  },
];

export const visorOtColorWays: ColorWay[] = [
  {
    name: "Marfil",
    tagline: "Detalle de club.",
    swatches: ["#F3EFE5", "#1B3A2F"],
    slides: [{ src: `${ACC_BASE}/visor-ot/01-hero.png`, fit: "contain" }],
  },
];

export const bolsoDuffelOtColorWays: ColorWay[] = [
  {
    name: "Marfil & Verde Oscuro",
    tagline: "Carry con carácter.",
    swatches: ["#F3EFE5", "#1B3A2F"],
    slides: [
      { src: `${ACC_BASE}/bolso-duffel-ot/01-hero.png`, fit: "contain" },
    ],
  },
];

export const gorraOtColorWays: ColorWay[] = [
  {
    name: "Verde Oscuro",
    tagline: "Firma en la cabeza.",
    swatches: ["#1B3A2F", "#F3EFE5"],
    slides: [
      { src: `${ACC_BASE}/gorra-ot/01-hero.png`, fit: "contain" },
      { src: `${ACC_BASE}/bolso-duffel-ot/01-hero.png`, fit: "contain" },
    ],
  },
];

export const neceserOtColorWays: ColorWay[] = [
  {
    name: "Marfil",
    tagline: "El detalle que cierra el look.",
    swatches: ["#F3EFE5", "#1B3A2F"],
    slides: [
      { src: `${ACC_BASE}/neceser-ot/01-hero.png`, fit: "contain" },
      { src: `${ACC_BASE}/bolso-duffel-ot/01-hero.png`, fit: "contain" },
    ],
  },
];

function colorWaysFromEditorial(product: Product): ColorWay[] | null {
  const ways = product.editorialColorWays;
  if (!ways?.length) return null;
  return ways.map((w) => ({
    name: w.name,
    tagline: w.tagline || product.tagline || "",
    swatches: w.swatches.length
      ? w.swatches
      : ["#1a1a1a", "#c4a574"],
    slides: (w.images.length ? w.images : product.images).map((src) => ({
      src,
      fit: "cover" as const,
    })),
  }));
}

export function getColorWays(product: Product): ColorWay[] | null {
  if (product.slug === "vestido-sporty-elegance") return sportyEleganceColorWays;
  if (product.slug === "set-polo-falda-club-1976") return setPoloFaldaColorWays;
  if (product.slug === "enterizo-deportivo-diagonal")
    return enterizoDeportivoColorWays;
  if (product.slug === "enterizo-diagonal-falda")
    return enterizoDiagonalFaldaColorWays;
  if (product.slug === "chaqueta-ot-classic") return chaquetaOtClassicColorWays;
  if (product.slug === "truzas") return truzasColorWays;
  if (product.slug === "faldas") return faldasColorWays;
  if (product.slug === "polos") return polosColorWays;
  if (product.slug === "conjunto-dos-piezas-chaqueta")
    return conjuntoDosPiezasChaquetaColorWays;
  if (product.slug === "bermuda-y-camisa") return bermudaYCamisaColorWays;
  if (product.slug === "polos-hombre") return polosHombreColorWays;
  if (product.slug === "set-completo-club-1976") return setCompletoClub1976ColorWays;
  if (product.slug === "set-pareja-club-1976") return setParejaClub1976ColorWays;
  if (product.slug === "packaging-ot") return packagingOtColorWays;
  if (product.slug === "visor-ot") return visorOtColorWays;
  if (product.slug === "bolso-duffel-ot") return bolsoDuffelOtColorWays;
  if (product.slug === "gorra-ot") return gorraOtColorWays;
  if (product.slug === "neceser-ot") return neceserOtColorWays;
  return colorWaysFromEditorial(product);
}

export function enrichProductWithEditorial(product: Product): Product {
  const ways = getColorWays(product);
  if (!ways) return product;

  const enriched: Product = {
    ...product,
    colors: ways.map((w) => w.name),
    images: ways[0]?.slides.map((s) => s.src).filter(Boolean) || product.images,
  };

  if (product.slug === "enterizo-deportivo-diagonal") {
    return {
      ...enriched,
      description:
        "Corte diagonal, diseño femenino y sofisticado. Un enterizo pensado para moverte con estilo — en la cancha y después del partido.",
      details: [
        "Corte diagonal con vivo fino",
        "Logo OT discreto",
        "Truzas internas para combinar",
        "Tela técnica: stretch, UV, no transparenta",
      ],
    };
  }

  if (product.slug === "enterizo-diagonal-falda") {
    return {
      ...enriched,
      description:
        "Corte diagonal con falda plisada integrada, diseño femenino y sofisticado. Un enterizo pensado para moverte con estilo — en la cancha y después del partido.",
      details: [
        "Corte diagonal con vivo fino",
        "Falda plisada con abertura diagonal",
        "Logo OT sutil y elegante",
        "Tela técnica: stretch, UV, no transparenta",
      ],
    };
  }

  if (product.slug === "set-polo-falda-club-1976") {
    return {
      ...enriched,
      description:
        "Siluetas femeninas, proporciones equilibradas y tejidos técnicos con caída natural. Cierre metálico, vivos en contraste y bordado OT en acabados precisos; falda de corte moderno, funcional y elegante. Un look pensado para el club — y más allá.",
      details: [
        "Cierre metálico premium",
        "Vivos en contraste refinados",
        "Bordado OT de alta calidad",
        "Abertura lateral funcional",
        "Bolsillo discreto",
      ],
    };
  }

  if (product.slug === "chaqueta-ot-classic") {
    return {
      ...enriched,
      description:
        "Look limpio, premium y muy refinado. Ideal para un estilo elegante, minimalista y muy sofisticada.",
      details: [
        "Cuello embudo con forro",
        "Cremallera completa",
        "Logo OT bordado",
        "Bolsillos laterales",
      ],
    };
  }

  if (product.slug === "truzas") {
    return {
      ...enriched,
      description:
        "Truzas internas diseñadas para brindar seguridad, comodidad y libertad de movimiento. Pensadas para usar con nuestras faldas deportivas y crear múltiples combinaciones.",
      details: [
        "Seguridad y comodidad",
        "Libertad de movimiento",
        "Ideales con faldas deportivas OT",
        "Múltiples combinaciones de color",
      ],
    };
  }

  if (product.slug === "faldas") {
    return {
      ...enriched,
      description:
        "Look limpio, premium y muy refinado. Ideal para un estilo elegante, minimalista y muy sofisticada.",
      details: [
        "Corte moderno y femenino",
        "Diseños para la cancha y después",
        "Combinables con truzas OT",
        "Tela técnica premium",
      ],
    };
  }

  if (product.slug === "polos") {
    return {
      ...enriched,
      description:
        "Polo deportivo con cierre frontal, vivos en contraste y logo OT. Look limpio, premium y muy refinado — para la cancha y después del partido.",
      details: [
        "Cierre frontal tipo zip",
        "Vivos en contraste en cuello y mangas",
        "Logo OT bordado",
        "Tela técnica premium",
      ],
    };
  }

  if (product.slug === "conjunto-dos-piezas-chaqueta") {
    return {
      ...enriched,
      description:
        "Chaqueta dos piezas con textura waffle y cierre completo. Clásico, masculino, elegancia con carácter.",
      details: [
        "Cierre frontal completo",
        "Logo OT bordado",
        "Textura waffle premium",
        "Puños y bajo elásticos",
      ],
    };
  }

  if (product.slug === "bermuda-y-camisa") {
    return {
      ...enriched,
      description:
        "Conjunto dos piezas: camisa polo y bermuda. Clásico, masculino, elegancia con carácter.",
      details: [
        "Cuello clásico con vivo en contraste",
        "Cierre frontal con cremallera",
        "Short con vivos laterales y cordón",
        "Poliéster técnico premium · secado rápido",
      ],
    };
  }

  if (product.slug === "polos-hombre") {
    return {
      ...enriched,
      description:
        "Polo con cierre frontal y vivos en contraste. Clásico, masculino, elegancia con carácter.",
      details: [
        "Cuello clásico con vivo en contraste",
        "Cierre frontal con cremallera",
        "Logo OT bordado en el pecho",
        "Poliéster técnico premium · secado rápido",
      ],
    };
  }

  if (product.slug === "set-completo-club-1976") {
    return {
      ...enriched,
      description:
        "Set completo: chaqueta, polo y falda. Clásico, femenino, elegancia con carácter — listo para la cancha.",
      details: [
        "Chaqueta con cierre completo",
        "Polo con cremallera y vivos",
        "Falda coordinada con logo OT",
        "Look completo Club 1976",
      ],
    };
  }

  if (product.slug === "set-pareja-club-1976") {
    return {
      ...enriched,
      description:
        "Set pareja para hacer match en la cancha. Coordinados él y ella — Club 1976, elegancia con carácter.",
      details: [
        "Looks coordinados él y ella",
        "Chaquetas OT a juego",
        "Logo OT en pecho y pierna",
        "Ideal para jugar juntos",
      ],
    };
  }

  if (product.slug === "packaging-ot") {
    return {
      ...enriched,
      description:
        "Caja rígida inspirada en la cancha y pouch que se transforma en pelota. Un detalle de firma OT.",
      details: [
        "Caja rígida con motivo de cancha",
        "Pouch premium tipo pelota",
        "Cabe varias prendas",
        "Materiales responsables",
      ],
    };
  }

  if (product.slug === "visor-ot") {
    return {
      ...enriched,
      description:
        "Visor crema con logo OT. Clásico, limpio y listo para la cancha — y después del partido.",
      details: [
        "Visera estilo tenis",
        "Logo OT bordado",
        "Acabado premium",
        "Talla única",
      ],
    };
  }

  if (product.slug === "bolso-duffel-ot") {
    return {
      ...enriched,
      description:
        "Duffel crema con vivos verde oscuro y logo OT. Para la cancha y el viaje.",
      details: [
        "Silueta tipo bowling / gym",
        "Vivos verde oscuro",
        "Logo OT bordado",
        "Herrajes en contraste",
      ],
    };
  }

  if (product.slug === "gorra-ot") {
    return {
      ...enriched,
      description:
        "Gorra verde oscuro con monograma OT. El accesorio esencial del club.",
      details: [
        "Estructura clásica 6 paneles",
        "Logo OT bordado",
        "Verde bosque OT",
        "Talla única",
      ],
    };
  }

  if (product.slug === "neceser-ot") {
    return {
      ...enriched,
      description:
        "Neceser crema con logo OT. Pequeño, limpio y coordinado con el duffel.",
      details: [
        "Formato compacto",
        "Logo OT discreto",
        "Cierre con cremallera",
        "Match con el duffel OT",
      ],
    };
  }

  if (product.slug !== "vestido-sporty-elegance") return enriched;

  return {
    ...enriched,
    tagline: "Para la cancha. Para después. Para ti.",
    description:
      "Un vestido que se mueve contigo: cuello camisero y cremallera deportiva de cierre completo que estilizan la silueta. La falda integrada cae en líneas limpias y femeninas, con acabados precisos para un look impecable — en la cancha y después del partido.",
    details: [
      "Cuello camisero con vivo en contraste",
      "Cierre frontal completo con cremallera deportiva",
      "Vivos en contraste que definen y estilizan",
      "Falda integrada con líneas limpias y femeninas",
      "Acabados precisos para un look impecable",
    ],
  };
}
