.elementor-63 .elementor-element.elementor-element-0b9d256{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:center;--gap:0px 20px;--row-gap:0px;--column-gap:20px;border-style:none;--border-style:none;box-shadow:0px 0px 20px 0px rgba(0, 0, 0, 0.1);--padding-top:20px;--padding-bottom:20px;--padding-left:30px;--padding-right:30px;}.elementor-63 .elementor-element.elementor-element-0b9d256:not(.elementor-motion-effects-element-type-background), .elementor-63 .elementor-element.elementor-element-0b9d256 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#061F5E;}.elementor-63 .elementor-element.elementor-element-28dd26c{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-63 .elementor-element.elementor-element-6da01fa{text-align:start;}.elementor-63 .elementor-element.elementor-element-6da01fa img{width:170px;}.elementor-63 .elementor-element.elementor-element-5c73a0f{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-63 .elementor-element.elementor-element-641ce02{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-63 .elementor-element.elementor-element-9fed31e{--main-alignment:right;--side-cart-alignment-transform:translateX(100%);--side-cart-alignment-left:auto;--side-cart-alignment-right:0;--divider-style:solid;--subtotal-divider-style:solid;--view-cart-button-display:none;--cart-footer-layout:1fr;--elementor-remove-from-cart-button:none;--remove-from-cart-button:block;--toggle-button-icon-color:#FFFFFF;--toggle-button-icon-hover-color:#FFFFFF;--toggle-button-border-width:0px;--toggle-icon-size:22px;--toggle-icon-padding:7px 5px 0px 5px;--items-indicator-text-color:#FFFFFF;--cart-border-style:none;--checkout-button-text-color:#FFFFFF;--checkout-button-background-color:#031C26;--checkout-button-hover-text-color:#FFFFFF;--checkout-button-hover-background-color:#000000;}body:not(.rtl) .elementor-63 .elementor-element.elementor-element-9fed31e .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter]{right:-7px;top:-7px;}body.rtl .elementor-63 .elementor-element.elementor-element-9fed31e .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter]{right:7px;top:-7px;left:auto;}.elementor-63 .elementor-element.elementor-element-9fed31e .widget_shopping_cart_content{--subtotal-divider-left-width:0;--subtotal-divider-right-width:0;}.elementor-63 .elementor-element.elementor-element-9fed31e .elementor-menu-cart__product-name a{font-family:"Inter", Sans-serif;font-size:13px;font-weight:600;line-height:1.2em;color:#031C26;}.elementor-63 .elementor-element.elementor-element-9fed31e .elementor-menu-cart__footer-buttons a.elementor-button--checkout{border-radius:7px 7px 7px 7px;}@media(max-width:1024px){.elementor-63 .elementor-element.elementor-element-28dd26c{--align-items:center;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );}.elementor-63 .elementor-element.elementor-element-28dd26c.e-con{--order:2;--flex-grow:1;--flex-shrink:0;}.elementor-63 .elementor-element.elementor-element-5c73a0f.e-con{--order:1;--flex-grow:0;--flex-shrink:1;}.elementor-63 .elementor-element.elementor-element-641ce02.e-con{--order:3;}}@media(min-width:768px){.elementor-63 .elementor-element.elementor-element-28dd26c{--width:15%;}.elementor-63 .elementor-element.elementor-element-5c73a0f{--width:70%;}.elementor-63 .elementor-element.elementor-element-641ce02{--width:15%;}}@media(max-width:1024px) and (min-width:768px){.elementor-63 .elementor-element.elementor-element-28dd26c{--width:50%;}.elementor-63 .elementor-element.elementor-element-5c73a0f{--width:100px;}.elementor-63 .elementor-element.elementor-element-641ce02{--width:100px;}}@media(max-width:767px){.elementor-63 .elementor-element.elementor-element-0b9d256{--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-63 .elementor-element.elementor-element-28dd26c{--width:30%;}.elementor-63 .elementor-element.elementor-element-6da01fa img{width:150px;}.elementor-63 .elementor-element.elementor-element-5c73a0f{--width:50px;}.elementor-63 .elementor-element.elementor-element-641ce02{--width:50px;}}/* Start custom CSS for woocommerce-menu-cart, class: .elementor-element-9fed31e *//* ================================
   CRECELE — Mini cart 1 columna
   Precio abajo + eliminar clickeable
   ================================ */

/* 1 columna: contenido -> precio -> remove */
.elementor-menu-cart__main .elementor-menu-cart__product{
  display:grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "content"
    "price"
    "remove" !important;
  gap: 10px !important;
  align-items:start !important;
  padding: 12px 12px !important;
  border-radius: 14px !important;
  background:#fff !important;
  box-shadow: none !important;
  margin-bottom:10px !important;

  position: relative !important; /* para z-index seguro */
}

/* Oculta miniatura sin dejar huecos */
.elementor-menu-cart__main .elementor-menu-cart__product-image{
  display:none !important;
  width:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* El contenedor principal del texto */
.elementor-menu-cart__main .elementor-menu-cart__product-name{
  grid-area: content !important;
  margin:0 !important;
  padding:0 !important;
  padding-left:0 !important;
  margin-left:0 !important;
  min-width:0 !important;
}

/* Oculta el nombre original (SEGUIDORES NORMALES...) */
.elementor-menu-cart__main .elementor-menu-cart__product-name > a{
  display:none !important;
}

/* Variations visibles (tu bloque crecele-mini / badge likes) */
.elementor-menu-cart__main .elementor-menu-cart__product .variation{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product .variation dt{
  display:none !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product .variation dd{
  margin:0 !important;
  padding:0 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product .variation dd p{
  margin:0 !important;
  padding:0 !important;
}

/* Precio abajo, alineado a la izquierda o derecha (elige) */
.elementor-menu-cart__main .elementor-menu-cart__product-price{
  grid-area: price !important;
  justify-self: start !important;   /* cambia a end si lo quieres a la derecha */
  align-self: start !important;
  white-space:nowrap !important;
  font-weight: 900 !important;
  margin-top: 2px !important;
}

/* Eliminar abajo */
.elementor-menu-cart__main .elementor-menu-cart__product-remove{
  grid-area: remove !important;
  justify-self: end !important;     /* botón a la derecha */
  align-self: start !important;

  display:flex !important;
  gap:8px !important;

  position: relative !important;
  z-index: 20 !important;           /* ✅ garantiza click */
  pointer-events: auto !important;  /* ✅ garantiza click */
}

/* Elementor a veces imprime 2 links: deja solo el de Elementor */
.elementor-menu-cart__main .elementor-menu-cart__product-remove a.remove_from_cart_button{
  display:none !important;
}

/* Botón eliminar clickeable */
.elementor-menu-cart__main .elementor-menu-cart__product-remove a.elementor_remove_from_cart_button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:auto !important;
  height:auto !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;

  background: rgba(239,68,68,.10) !important;
  text-decoration:none !important;

  position: relative !important;
  z-index: 30 !important;           /* ✅ por encima de todo */
  pointer-events: auto !important;  /* ✅ */
}

/* Texto "Eliminar" */
.elementor-menu-cart__main .elementor-menu-cart__product-remove a.elementor_remove_from_cart_button:before{
  content:"Eliminar" !important;
  color:#ef4444 !important;
  font-weight:900 !important;
  font-size:12px !important;
}

/* ✅ IMPORTANTE: evita que algún overlay o pseudo-elemento tape clicks */
.elementor-menu-cart__main .elementor-menu-cart__product-name,
.elementor-menu-cart__main .elementor-menu-cart__product-name *{
  position: relative !important;
  z-index: 1 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-price{
  position: relative !important;
  z-index: 1 !important;
}

/* El ícono de red no clickeable */
.elementor-menu-cart__main .crecele-mini__iconimg{
  pointer-events:none !important;
  user-select:none !important;
}

/* Badge likes delgado (si aplica) */
.elementor-menu-cart__main .crecele-like-badge{
  display:inline-flex !important;
  align-items:center !important;
  width: fit-content !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: rgba(34,197,94,.12) !important;
  color: #166534 !important;
}

/* =========================
   CRECELE — Tipografía / jerarquía (mini cart)
   Pégalo AL FINAL
   ========================= */

.elementor-menu-cart__main{
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Bloque seguidores (texto) */
.elementor-menu-cart__main .crecele-mini{
  gap: 10px !important;
}

/* Fila red (Instagram + texto) */
.elementor-menu-cart__main .crecele-mini__net{
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
  color: #0f172a !important;
}

/* Icono: evita gigante (tu imagen salió enorme) */
.elementor-menu-cart__main .crecele-mini__iconimg{
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

/* Labels “Paquete / Usuario” */
.elementor-menu-cart__main .crecele-mini__row{
  font-size: 14px !important;
  line-height: 1.25 !important;
  color:#0f172a !important;
}
.elementor-menu-cart__main .crecele-mini__lbl{
  font-weight: 900 !important;
  color:#0f172a !important;
}
.elementor-menu-cart__main .crecele-mini__val{
  font-weight: 700 !important;
  color:#0b1220 !important;
}

/* Precio del item (1× $xx) que se ve muy claro */
.elementor-menu-cart__main .elementor-menu-cart__product-price{
  font-size: 14px !important;
  font-weight: 900 !important;
  color:#0f172a !important;
  opacity: 1 !important;
}

/* Separación visual para que no se vea apretado */
.elementor-menu-cart__main .elementor-menu-cart__product{
  padding: 14px 14px !important;
}

/* ===== Likes badge MÁS GRANDE + bonito ===== */
.elementor-menu-cart__main .crecele-like-badge{
  display:inline-flex !important;
  align-items:center !important;
  width: fit-content !important;

  padding: 8px 12px !important;     /* ⬅️ más grande */
  border-radius: 999px !important;

  font-size: 13px !important;       /* ⬅️ más grande */
  font-weight: 900 !important;
  line-height: 1 !important;

  background: rgba(34,197,94,.14) !important;
  color: #166534 !important;

  box-shadow: 0 6px 18px rgba(22,101,52,.12) !important;
}

/* Opcional: centra el badge de likes en móvil */
@media (max-width:560px){
  .elementor-menu-cart__main .crecele-like-badge{
    margin-top: 4px !important;
  }
}

/* =========================================
   CRECELE — Mini Cart Elementor: 1 columna
   (contenido arriba, precio abajo, X clickeable)
   PÉGALO AL FINAL
   ========================================= */

.elementor-menu-cart__main .elementor-menu-cart__product{
  display:flex !important;
  flex-direction:column !important;
  gap: 10px !important;
  align-items:stretch !important;

  padding: 14px 14px !important;
  border-radius: 16px !important;
  background:#fff !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;

  position:relative !important;
}

/* Quitamos el “hueco” de imagen: no la muestres y no reserve nada */
.elementor-menu-cart__main .elementor-menu-cart__product-image{
  display:none !important;
}

/* Oculta el nombre default del producto */
.elementor-menu-cart__main .elementor-menu-cart__product-name > a{
  display:none !important;
}

/* El contenedor donde vive <dl class="variation"> ocupa todo */
.elementor-menu-cart__main .elementor-menu-cart__product-name{
  width:100% !important;
  margin:0 !important;
}

/* Asegura que SÍ se vea el dl con nuestro bloque */
.elementor-menu-cart__main .elementor-menu-cart__product .variation{
  display:block !important;
  margin:0 !important;
}

/* Oculta el dt (crecele_block:) */
.elementor-menu-cart__main .elementor-menu-cart__product .variation dt{
  display:none !important;
}

/* dd ocupa todo y sin márgenes raros */
.elementor-menu-cart__main .elementor-menu-cart__product .variation dd{
  margin:0 !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product .variation dd p{
  margin:0 !important;
}

/* === Precio: abajo y alineado a la derecha === */
.elementor-menu-cart__main .elementor-menu-cart__product-price{
  width:100% !important;
  order: 5 !important;
  display:flex !important;
  justify-content:flex-end !important;

  margin-top: 2px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  color:#0f172a !important;
}

/* === Botón eliminar: arriba derecha y SIEMPRE clickeable === */
.elementor-menu-cart__main .elementor-menu-cart__product-remove{
  position:absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 9999 !important;
  pointer-events:auto !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-remove a{
  pointer-events:auto !important;
  display:inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius: 999px !important;
  background: rgba(15,23,42,.06) !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-remove a:before{
  content:"×" !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: rgba(15,23,42,.55) !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-remove a:hover{
  background: rgba(239,68,68,.10) !important;
}
.elementor-menu-cart__main .elementor-menu-cart__product-remove a:hover:before{
  color:#ef4444 !important;
}

/* Evita que otra capa “tape” la X */
.elementor-menu-cart__main .elementor-menu-cart__product-name,
.elementor-menu-cart__main .elementor-menu-cart__product-price{
  position:relative !important;
  z-index: 1 !important;
}

/* ========= Tipografía / bloque ========= */
.elementor-menu-cart__main{
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.elementor-menu-cart__main .crecele-mini{
  display:flex !important;
  flex-direction:column !important;
  gap: 10px !important;
}

/* Fila icono + red (como tu ejemplo) */
.elementor-menu-cart__main .crecele-mini__net{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  color:#0f172a !important;
}

/* Icono controlado (para que NO se haga enorme) */
.elementor-menu-cart__main .crecele-mini__iconimg{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  object-fit:contain !important;
  border-radius: 6px !important;

  pointer-events:none !important;
  user-select:none !important;
}

/* Paquete / Usuario con estilo fuerte como tu screenshot */
.elementor-menu-cart__main .crecele-mini__row{
  font-size: 16px !important;
  line-height: 1.15 !important;
  color:#0f172a !important;
}
.elementor-menu-cart__main .crecele-mini__lbl{
  font-weight: 900 !important;
}
.elementor-menu-cart__main .crecele-mini__val{
  font-weight: 900 !important;
}

/* Likes badge más grande (como tu ejemplo) */
.elementor-menu-cart__main .crecele-like-badge{
  display:inline-flex !important;
  width: fit-content !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;

  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  background: rgba(34,197,94,.14) !important;
  color: #166534 !important;
}

/* Mobile: aire */
@media (max-width:560px){
  .elementor-menu-cart__main .elementor-menu-cart__product{
    padding: 14px 14px !important;
  }
}

/* Enter después de "Paquete:" y "Usuario/URL:" */
.elementor-menu-cart__main .crecele-mini__row{
  display:flex !important;
  flex-direction:column !important;
  gap: 4px !important; /* separación entre label y valor */
}

/* Labels SIN negrita */
.elementor-menu-cart__main .crecele-mini__lbl{
  font-weight: 800 !important;
  opacity: .85 !important;
}

/* Valores en la siguiente línea y sí pueden ir fuertes */
.elementor-menu-cart__main .crecele-mini__val{
  display:block !important;
  font-weight: 400 !important;
}

/* Card del mini cart: gris claro para que no se pierda con el fondo blanco */
.elementor-menu-cart__main .elementor-menu-cart__product{
  background: #F3F4F6 !important;              /* gris claro */
  box-shadow: none !important;
  border: 1px solid rgba(15,23,42,.06) !important;
}

/* (Opcional) Que el “badge” de likes no se pierda contra el gris */
.elementor-menu-cart__main .crecele-like-badge{
  background: #EAF7EE !important;
  border: 1px solid rgba(22,101,52,.10) !important;
}

/**
 * ===== CRECELE ARG — Helpers =====
 * Detecta likes por SLUG (no por ID)
 * Slugs esperados: likesars / crecelears_likes
 */
function crecelears_is_likes_product($product_id){
  $p = wc_get_product((int)$product_id);
  if ( ! $p ) return false;

  // por si llega variación, sube al padre
  if ( $p->is_type('variation') ) {
    $p = wc_get_product((int) $p->get_parent_id());
    if ( ! $p ) return false;
  }

  $slug = (string) $p->get_slug();
  return in_array($slug, ['likesars','crecelears_likes'], true);
}

/** Helper: convertir slug de atributo a nombre de término */
function crecelears_variation_term_name($tax, $slug){
  $name = $slug;
  if ( taxonomy_exists($tax) ) {
    $term = get_term_by('slug', $slug, $tax);
    if ( $term && ! is_wp_error($term) ) $name = $term->name;
  }
  return (string)$name;
}

/** Iconos por red (los mismos te sirven en AR) */
function crecelears_net_icon_url($net){
  $net = strtolower(trim((string)$net));
  if (strpos($net, 'instagram') !== false) return site_url('/wp-content/uploads/2025/08/Instagram_icon.png');
  if (strpos($net, 'tiktok') !== false)    return site_url('/wp-content/uploads/2025/08/pngimg.com-tiktok_PNG2.png');
  if (strpos($net, 'facebook') !== false)  return site_url('/wp-content/uploads/2025/08/Facebook_logo_square.png');
  return '';
}

/**
 * ===== 2) Guardar meta en carrito =====
 * ✅ Para LIKES: NO guardamos usuario/red (aunque el widget los mande)
 */
add_filter('woocommerce_add_cart_item_data', function($cart_item_data, $product_id, $variation_id){

  if ( function_exists('crecelears_is_likes_product') && crecelears_is_likes_product($product_id) ) {
    // Asegura que NO queden “pegados” por ningún lado
    unset($cart_item_data['crecele_username'], $cart_item_data['crecele_red']);
    return $cart_item_data;
  }

  if ( isset($_POST['crecele_username']) ) {
    $cart_item_data['crecele_username'] = sanitize_text_field(wp_unslash($_POST['crecele_username']));
  }

  if ( isset($_POST['crecele_red']) ) {
    $cart_item_data['crecele_red'] = sanitize_text_field(wp_unslash($_POST['crecele_red']));
  }

  return $cart_item_data;
}, 10, 3);


/**
 * ===== 3) Mostrar en carrito/checkout =====
 * ✅ LIKES: SOLO badge (sin usuario/red)
 * ✅ Seguidores: bloque (icono+red / Paquete / Usuario)
 */
add_filter('woocommerce_get_item_data', function($item_data, $cart_item){

  $pid = isset($cart_item['product_id']) ? (int)$cart_item['product_id'] : 0;

  // ✅ LIKES: solo badge
  if ( function_exists('crecelears_is_likes_product') && crecelears_is_likes_product($pid) ) {

    $likes_label = '';
    if (!empty($cart_item['variation']) && is_array($cart_item['variation'])) {
      foreach ($cart_item['variation'] as $attr_key => $slug) {
        if (!$slug) continue;
        $tax = str_replace('attribute_', '', $attr_key);
        $likes_label = crecelears_variation_term_name($tax, $slug);
        if ($likes_label) break;
      }
    }
    $likes_label = $likes_label ?: 'Likes agregados';

    $html = '<span class="crecele-like-badge">'.esc_html($likes_label).'</span>';

    return [
      [
        'name'    => 'crecele_likes',
        'value'   => wp_kses($html, ['span'=>['class'=>true]]),
        'display' => wp_kses($html, ['span'=>['class'=>true]]),
      ]
    ];
  }

  // ✅ Seguidores: bloque ordenado
  $has_crecele = (!empty($cart_item['crecele_username']) || !empty($cart_item['crecele_red']));
  if ( ! $has_crecele ) return $item_data;

  $net  = !empty($cart_item['crecele_red']) ? (string)$cart_item['crecele_red'] : '';
  $user = !empty($cart_item['crecele_username']) ? (string)$cart_item['crecele_username'] : '';

  // Paquete (primer atributo)
  $pack = '';
  if (!empty($cart_item['variation']) && is_array($cart_item['variation'])) {
    foreach ($cart_item['variation'] as $attr_key => $slug) {
      if (!$slug) continue;
      $tax  = str_replace('attribute_', '', $attr_key);
      $pack = crecelears_variation_term_name($tax, $slug);
      if ($pack) break;
    }
  }

  $icon = crecelears_net_icon_url($net);

  $icon_html = $icon
    ? '<img class="crecele-mini__iconimg" src="'.esc_url($icon).'" alt="'.esc_attr($net).'">'
    : '';

  $html =
    '<div class="crecele-mini">'.
      '<div class="crecele-mini__net">'.$icon_html.'<span class="crecele-mini__nettxt">'.esc_html($net).'</span></div>'.
      '<div class="crecele-mini__row"><span class="crecele-mini__lbl">Paquete:</span> <span class="crecele-mini__val">'.esc_html($pack).'</span></div>'.
      '<div class="crecele-mini__row"><span class="crecele-mini__lbl">Usuario/URL:</span> <span class="crecele-mini__val">'.esc_html($user).'</span></div>'.
    '</div>';

  return [
    [
      'name'    => 'crecele_block',
      'value'   => wp_kses($html, ['div'=>['class'=>true],'span'=>['class'=>true],'img'=>['class'=>true,'src'=>true,'alt'=>true]]),
      'display' => wp_kses($html, ['div'=>['class'=>true],'span'=>['class'=>true],'img'=>['class'=>true,'src'=>true,'alt'=>true]]),
    ]
  ];

}, 99, 2);


/**
 * ===== 4) Carrito -> Pedido (Order item meta) =====
 * ✅ Seguidores: guarda Red y Usuario/URL
 * ❌ LIKES: NO guarda nada
 */
add_action('woocommerce_checkout_create_order_line_item', function($item, $cart_item_key, $values, $order){

  $pid = isset($values['product_id']) ? (int)$values['product_id'] : 0;

  if ( function_exists('crecelears_is_likes_product') && crecelears_is_likes_product($pid) ) {
    return; // ❌ likes: nada de red/usuario
  }

  if ( ! empty($values['crecele_red']) ) {
    $item->add_meta_data('Red', (string) $values['crecele_red'], true);
  }
  if ( ! empty($values['crecele_username']) ) {
    $item->add_meta_data('Usuario/URL', (string) $values['crecele_username'], true);
  }

}, 10, 4);/* End custom CSS */