/* =================================================
   POGALUA · ELEMENTOS DE INTERFAZ
   Botón flotante y acceso a cuenta
================================================= */

/* ---------------------------------
   Botón flotante
---------------------------------- */
.pogalua-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #7b4eff 0%, #9558ff 100%);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
  z-index: 9999;
  box-shadow:
    0 18px 34px rgba(123, 78, 255, 0.26),
    0 0 24px rgba(123, 78, 255, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.pogalua-fab:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #8a54ff 0%, #f4cb41 150%);
  box-shadow:
    0 22px 40px rgba(123, 78, 255, 0.3),
    0 0 28px rgba(244, 203, 65, 0.16);
  filter: saturate(1.04);
}

.pogalua-fab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.98rem;
  line-height: 1;
}

.pogalua-fab:hover span {
  color: #fff;
}

/* ---------------------------------
   Cuenta de usuario en cabecera
---------------------------------- */
.pogalua-account {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  line-height: 1;
  color: #2b2b2b;
}

.pogalua-account__icon {
  display: block;
}

.pogalua-account__label {
  font-size: 12px;
  line-height: 1.1;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pogalua-account:hover {
  color: #9505e3;
}

/* ---------------------------------
   Justificar párrafos en páginas editoriales
---------------------------------- */
.page-slug-sobre-pogalua .poga-page-toc-content p,
.page-slug-ser-creador-en-pogalua .poga-page-toc-content p,
.page-slug-la-idea .entry-content p,
.page-slug-valores .entry-content p {
  text-align: justify;
  text-justify: inter-word;
}

/* =================================================
   POGALUA · SINGLE CREADOR
================================================= */

.pogalua-creator-side-head {
  margin-bottom: 22px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pogalua-creator-name,
.pogalua-creator-tagline {
  background: transparent !important;
}

.pogalua-creator-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px 56px;
}

.pogalua-creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) 320px;
  gap: 28px;
  align-items: start;
}

.pogalua-creator-main {
  min-width: 0;
}

.pogalua-creator-media-wrap,
.pogalua-creator-editorial {
  max-width: 740px;
}

.pogalua-creator-media {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.pogalua-creator-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pogalua-creator-noimage {
  padding: 56px 18px;
  color: rgba(0, 0, 0, 0.55);
}

.pogalua-creator-editorial {
  margin-top: 22px;
}

.pogalua-creator-block + .pogalua-creator-block {
  margin-top: 30px;
}

.pogalua-section-title {
  margin: 0 0 10px;
}

.pogalua-prose--creator {
  max-width: 100%;
}

.pogalua-prose--creator p {
  text-align: justify;
  text-justify: inter-word;
}

.pogalua-creator-side {
  min-width: 0;
}

.pogalua-creator-side-head {
  margin-bottom: 10px;
}

.pogalua-creator-name {
  margin: 0 0 5px;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.pogalua-creator-tagline {
  margin-top: 20px;
  max-width: 24ch;
  color: rgba(0, 0, 0, 1);
  font-size: 1.1rem;
  line-height: 1.45;
}

.pogalua-side-section + .pogalua-side-section {
  margin-top: 10px;
}

.pogalua-links {
  display: grid;
  gap: 14px;
}

.pogalua-linkrow {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pogalua-linkrow .k {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(149, 5, 227, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pogalua-linkrow .v {
  display: block;
  color: rgba(0, 0, 0, 0.65);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-word;
}

.pogalua-linkrow .v:hover {
  text-decoration: underline;
}

.pogalua-discount {
  padding-top: 2px;
}

.pogalua-discount .note {
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pogalua-code {
  display: inline-block;
  padding: 8px 12px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.55);
}

.pogalua-discount p {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.68);
}

.pogalua-taxo {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.pogalua-chip {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
  background: transparent;
}

.pogalua-chip-k {
  min-width: 62px;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.pogalua-chip-v {
  font-size: 0.85rem;
  line-height: 1.3;
}

.pogalua-chip a {
  font-weight: 700;
  text-decoration: none;
}

.pogalua-chip a:hover {
  text-decoration: underline;
}

.pogalua-chip .muted {
  font-weight: 700;
  color: #111;
}

.pogalua-loc-line {
  display: block;
  line-height: 1.25;
}

/* ---------------------------------
   Productos del creador
---------------------------------- */

.pogalua-creator-products .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  justify-content: start;
  gap: 14px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
}

.pogalua-creator-products-grid.products li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.pogalua-creator-products-grid.products::before,
.pogalua-creator-products-grid.products::after {
  display: none !important;
  content: none !important;
}

/* =================================
   FIX · HUECO TARJETA PRODUCTO
   SOLO EN GRID DE PRODUCTOS DEL CREADOR
================================= */

/* wrapper principal */
.pogalua-creator-products-grid > li.product,
.pogalua-creator-products-grid > li.product .kadence-product-content,
.pogalua-creator-products-grid > li.product .content-wrap {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
}

/* ESTE ES EL BLOQUE QUE GENERA EL HUECO */
.pogalua-creator-products-grid > li.product .product-details {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* imagen */
.pogalua-creator-products-grid > li.product .woocommerce-loop-product__link {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* cuerpo */
.pogalua-creator-products-grid > li.product .poga-card-body {
  margin: 0 !important;
  padding-top: 0 !important;
  min-height: 0 !important;
}

.pogalua-creator-products-grid > li.product .poga-title-row,
.pogalua-creator-products-grid > li.product .woocommerce-loop-product__title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pogalua-creator-products-grid > li.product > * + * {
  margin-top: 0 !important;
}

@media (max-width: 1080px) {
  .pogalua-creator-layout {
    grid-template-columns: 1fr;
  }

  .pogalua-creator-media-wrap,
  .pogalua-creator-editorial,
  .pogalua-creator-side {
    max-width: 740px;
  }
}

@media (max-width: 680px) {
  .pogalua-creator-products-grid.products {
    grid-template-columns: 1fr !important;
  }

  .pogalua-creator-name {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
}

/* =================================
   FIX DEFINITIVO · HUECO TARJETA
   SOLO EN SINGLE CREADOR
================================= */

.single-creadores .woocommerce .pogalua-creator-products-grid.products li.product > .product-details.content-bg.entry-content-wrap {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
}

.single-creadores .woocommerce .pogalua-creator-products-grid.products li.product > .product-details.content-bg.entry-content-wrap * {
  display: none !important;
}

.single-creadores .woocommerce .pogalua-creator-products-grid.products li.product > .poga-card-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =================================================
   POGALUA · BADGES COMPARTIDOS
================================================= */

.poga-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(123, 78, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(123, 78, 255, 0.70);
  font-size: 0;
  line-height: 1;
  cursor: help;
}

.poga-badge::before {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.poga-badge-unico::before { content: "U"; }
.poga-badge-artesano::before { content: "A"; }
.poga-badge-sostenible::before { content: "S"; }
.poga-badge-limitada::before { content: "L"; }
.poga-badge-colaboracion::before { content: "C"; }
.poga-badge-seleccion::before { content: "P"; }
.poga-badge-patentado::before { content: "R"; }

/* =================================================
   POGALUA · CART TO CHECKOUT FEEDBACK
================================================= */

.poga-checkout-loading {
  position: relative;
  pointer-events: none;
  cursor: progress !important;
  opacity: 0.9;
}

.poga-checkout-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: poga-checkout-loading-spin 0.7s linear infinite;
}

body.poga-cart-is-navigating-checkout .poga-checkout-loading {
  filter: saturate(0.92);
}

@keyframes poga-checkout-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   WooCommerce - aviso superior / store notice
   ========================================================= */

.woocommerce-store-notice,
p.demo_store {
  position: relative;
  padding-right: 72px !important;
}

.woocommerce-store-notice__dismiss-link {
  position: absolute !important;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: transparent !important;
  text-indent: -9999px;
  white-space: nowrap;
  text-decoration: none;
  border: 0;
  background: transparent;
  z-index: 20;
}

.woocommerce-store-notice__dismiss-link::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: 0;
  color: #6b4df6;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}

.woocommerce-store-notice__dismiss-link:hover::after,
.woocommerce-store-notice__dismiss-link:focus::after {
  opacity: 0.72;
}

/* =================================================
   SINGLE CREADOR · MOBILE ORDER FIX
================================================= */

@media (max-width: 680px) {

  .single-creadores .pogalua-creator-wrap {
    padding: 34px 14px 48px;
  }

  .single-creadores .pogalua-creator-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .single-creadores .pogalua-creator-main,
  .single-creadores .pogalua-creator-side {
    display: contents !important;
  }

  /* 1. Imagen principal */
  .single-creadores .pogalua-creator-media-wrap {
    order: 1 !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }

  .single-creadores .pogalua-creator-media {
    border-radius: 18px;
  }

  /* 2. Nombre + frase */
  .single-creadores .pogalua-creator-side-head {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  .single-creadores .pogalua-creator-name {
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 0.95;
  }

  .single-creadores .pogalua-creator-tagline {
    margin-top: 0;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 3. Links */
  .single-creadores .pogalua-links {
    order: 3 !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* 4. Cupón */
  .single-creadores .pogalua-discount {
    order: 4 !important;
    width: 100% !important;
    margin-bottom: 28px !important;
  }

  /* 5. Disciplina / ubicación */
  .single-creadores .pogalua-taxo {
    order: 5 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 34px !important;
  }

  .single-creadores .pogalua-chip {
    padding: 0 0 10px;
  }

  /* 6. Perfil / Más / Productos */
  .single-creadores .pogalua-creator-editorial {
    order: 6 !important;
    max-width: 100% !important;
    margin-top: 0 !important;
  }

  .single-creadores .pogalua-section-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 0.96;
  }

  .single-creadores .pogalua-prose--creator p {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.76;
  }

  /* Productos del creador en dos columnas */
  .single-creadores .pogalua-creator-products .products,
  .single-creadores .pogalua-creator-products-grid.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    width: 100% !important;
    margin-top: 16px !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ajuste del FAB para que no tape lectura */
  .single-creadores .pogalua-fab {
    right: 18px;
    bottom: 22px;
    width: 52px;
    height: 52px;
  }
}

/* =================================================
   SINGLE CREADOR · MOBILE ORDER DEFINITIVO
================================================= */

@media (max-width: 680px) {

  .single-creadores .pogalua-creator-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .single-creadores .pogalua-creator-main,
  .single-creadores .pogalua-creator-side,
  .single-creadores .pogalua-creator-editorial {
    display: contents !important;
  }

  /* 1. Imagen */
  .single-creadores .pogalua-creator-media-wrap {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }

  /* 2. Nombre + frase */
  .single-creadores .pogalua-creator-side-head {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .single-creadores .pogalua-creator-name {
    margin: 0 0 10px !important;
    font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
    line-height: 0.95 !important;
  }

  .single-creadores .pogalua-creator-tagline {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  /* 3. Perfil */
  .single-creadores .pogalua-creator-editorial > .pogalua-creator-block:nth-of-type(1) {
    order: 3 !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 34px !important;
  }

  /* 4. Cupón */
  .single-creadores .pogalua-discount {
    order: 4 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  /* 5. Redes sociales / enlaces */
  .single-creadores .pogalua-links {
    order: 5 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  /* 6. Más */
  .single-creadores .pogalua-creator-editorial > .pogalua-creator-block:nth-of-type(2) {
    order: 6 !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 34px !important;
  }

  /* 7. Disciplina / ubicación */
  .single-creadores .pogalua-taxo {
    order: 7 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 0 38px !important;
  }

  .single-creadores .pogalua-chip {
    padding: 0 0 10px !important;
  }

  /* 8. Productos de este creador */
  .single-creadores .pogalua-creator-products,
  .single-creadores .pogalua-creator-editorial > .pogalua-creator-block:nth-of-type(3) {
    order: 8 !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .single-creadores .pogalua-creator-products .products,
  .single-creadores .pogalua-creator-products-grid.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Lectura móvil */
  .single-creadores .pogalua-section-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 0.96 !important;
  }

  .single-creadores .pogalua-prose--creator p {
    text-align: left !important;
    font-size: 0.92rem !important;
    line-height: 1.76 !important;
  }
}

/* =================================================
   SINGLE CREADOR · MOBILE ORDER FINAL
================================================= */

@media (max-width: 680px) {

  .single-creadores .pogalua-creator-wrap {
    padding: 34px 14px 48px;
  }

  .single-creadores .pogalua-creator-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .single-creadores .pogalua-creator-main,
  .single-creadores .pogalua-creator-side,
  .single-creadores .pogalua-creator-editorial {
    display: contents !important;
  }

  .single-creadores .pogalua-creator-media-wrap {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }

  .single-creadores .pogalua-creator-side-head {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .single-creadores .pogalua-creator-profile-block {
    order: 3 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  .single-creadores .pogalua-creator-discount-section {
    order: 4 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  .single-creadores .pogalua-creator-links-section {
    order: 5 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  .single-creadores .pogalua-creator-more-block {
    order: 6 !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  .single-creadores .pogalua-creator-taxo-section {
    order: 7 !important;
    width: 100% !important;
    margin: 0 0 38px !important;
  }

  .single-creadores .pogalua-creator-products {
    order: 8 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .single-creadores .pogalua-creator-name {
    margin: 0 0 10px !important;
    font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
    line-height: 0.95 !important;
  }

  .single-creadores .pogalua-creator-tagline {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .single-creadores .pogalua-taxo {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
  }

  .single-creadores .pogalua-chip {
    padding: 0 0 10px !important;
  }

  .single-creadores .pogalua-section-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 0.96 !important;
  }

  .single-creadores .pogalua-prose--creator p {
    text-align: left !important;
    font-size: 0.92rem !important;
    line-height: 1.76 !important;
  }

  .single-creadores .pogalua-creator-products .products,
  .single-creadores .pogalua-creator-products-grid.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  .single-creadores .pogalua-creator-products-grid.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* =================================================
   Pogalua Launch Lock
================================================= */
.pogalua-launch-lock-notice {
	margin: 0 0 24px;
	padding: 12px 16px;
	border: 1px solid rgba(149, 5, 227, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: rgba(47, 39, 53, 0.74);
	font-size: 0.92rem;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 8px 20px rgba(60, 32, 90, 0.05);
}

.single-product .pogalua-launch-lock-notice {
	margin-bottom: 18px;
	border-radius: 16px;
	text-align: left;
}