/* =========================================================
   CENTRO POKÉMON v2 — sistema visual
   Tipografía Lato (como pokemon.co.jp) · paleta del logo Pokémon
   ========================================================= */
body.cp-v2 {
  --c2-red: #e3350d;
  --c2-red-dark: #a8260a;
  --c2-yellow: #ffcb05;
  --c2-yellow-dark: #c79c00;
  --c2-blue: #2a75bb;
  --c2-blue-dark: #1d5287;
  --c2-ink: #1d1d1f;
  --c2-ink-2: #2b2b2e;
  --c2-muted: #6e6e73;
  --c2-line: #e8e6e1;
  --c2-soft: #f6f5f2;
  --c2-bg: #fbfaf8;
  --c2-radius: 18px;
  --c2-ease: cubic-bezier(.2, .8, .2, 1);
  --c2-font: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --theme-font-family: var(--c2-font);
  font-family: var(--c2-font) !important;
  background: var(--c2-bg) !important;
  color: var(--c2-ink);
  -webkit-font-smoothing: antialiased;
}
body.cp-v2 :is(h1, h2, h3, h4, h5, h6, p, a, li, span, button, input, select, textarea, label, td, th, .price, .button, .elementor-heading-title, .elementor-button, .elementor-widget-text-editor) {
  font-family: var(--c2-font) !important;
}
body.cp-v2 :is(h1, h2, h3, .elementor-heading-title) { font-weight: 900 !important; letter-spacing: -.01em; color: var(--c2-ink); }

/* ---------- Ocultar encabezado y pie anteriores ---------- */
body.cp-v2 #header, body.cp-v2 header#header, body.cp-v2 .ct-header,
body.cp-v2 #footer, body.cp-v2 footer#footer, body.cp-v2 .ct-footer,
body.cp-v2 #woo-cart-panel, body.cp-v2 .added_to_cart.wc-forward,
body.cp-v2 .woocommerce-notices-wrapper .woocommerce-message:has(.wc-forward) { display: none !important; }

.cp2-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 689px) { .cp2-wrap { padding: 0 16px; } }
html.cp-lock, html.cp-lock body { overflow: hidden; }

/* =========================================================
   Carteles — cuadro de diálogo de los juegos
   ========================================================= */
.cp2-banner {
  background: var(--c2-red);
  background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .12) 2px, transparent 2.5px);
  background-size: 24px 24px;
  padding: 10px 16px;
}
.cp2-dialog {
  position: relative;
  max-width: 980px; margin: 0 auto;
  min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 44px 10px 22px;
  background: #fff;
  border: 3px solid var(--c2-ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #8ec5e8, 0 4px 0 rgba(0, 0, 0, .25);
}
.cp2-dialog__text {
  margin: 0 !important;
  font-family: pokemon-gb, 'Lato', monospace !important;
  font-size: 11px; line-height: 1.7; letter-spacing: .02em; text-transform: uppercase; text-align: center;
  color: var(--c2-ink);
}
.cp2-dialog__arrow {
  position: absolute; right: 16px; bottom: 6px;
  font-size: 12px; color: var(--c2-red);
  animation: cp2-blink 1s steps(2, start) infinite;
}
@keyframes cp2-blink { to { visibility: hidden; } }
@media (max-width: 689px) {
  .cp2-banner { padding: 8px 10px; }
  .cp2-dialog { padding: 8px 34px 8px 14px; min-height: 40px; }
  .cp2-dialog__text { font-size: 9px; line-height: 1.6; }
}

/* =========================================================
   Encabezado (estructura Pony)
   ========================================================= */
.cp2-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 990;
  background: #fff;
  box-shadow: 0 1px 0 var(--c2-line);
}
.cp2-top { display: flex; align-items: center; gap: 28px; height: 84px; transition: height .25s var(--c2-ease); }
.cp2-logo { flex: none; display: flex; align-items: center; }
.cp2-logo img { height: 68px; width: auto; transition: height .25s var(--c2-ease); }
.cp2-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.cp2-nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 14px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  color: var(--c2-ink) !important; text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.cp2-nav a:hover { background: var(--c2-soft); color: var(--c2-red) !important; }
.cp2-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cp2-ico {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px; padding: 6px 8px; border: 0; border-radius: 14px;
  background: none !important; box-shadow: none !important; cursor: pointer;
  color: var(--c2-ink) !important; text-decoration: none;
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, transform .2s var(--c2-ease);
}
.cp2-ico:hover { background: var(--c2-soft) !important; transform: translateY(-2px); }
.cp2-ico img { width: 34px; height: 34px; object-fit: contain; }
.cp2-count {
  position: absolute; top: 2px; right: 8px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--c2-red); color: #fff; font-size: 11px; font-weight: 900; font-style: normal;
  box-shadow: 0 0 0 2px #fff;
}
.cp2-count[hidden] { display: none; }

.cp2-bar { background: var(--c2-ink); position: relative; }
.cp2-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--c2-red) 0 34%, var(--c2-yellow) 34% 67%, var(--c2-blue) 67%);
}
.cp2-bar__inner { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
.cp2-catbtn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--c2-red) !important; color: #fff !important;
  font-size: 15px; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 4px 0 var(--c2-red-dark) !important;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.cp2-catbtn:hover { background: #f04416 !important; transform: translateY(-1px); box-shadow: 0 5px 0 var(--c2-red-dark) !important; }
.cp2-catbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c2-red-dark) !important; }
.cp2-catbtn--mobile { display: none; }
.cp2-search { flex: 1; min-width: 0; }
.cp2-search .dgwt-wcas-search-wrapp { max-width: none !important; min-width: 0; }
.cp2-search .dgwt-wcas-sf-wrapp { background: #fff !important; border-radius: 14px; padding: 4px !important; }
.cp2-search input[type=search].dgwt-wcas-search-input {
  height: 42px !important; border: 0 !important; border-radius: 10px !important; background: #fff !important;
  font-size: 15px !important; padding-left: 16px !important; box-shadow: none !important; color: var(--c2-ink) !important;
}
.cp2-search .dgwt-wcas-search-submit {
  height: 42px !important; min-height: 42px !important; border-radius: 10px !important; top: 4px !important; right: 4px !important;
  background: var(--c2-red) !important; padding: 0 22px !important;
}
.cp2-search .dgwt-wcas-search-submit::before { display: none !important; }
.cp2-search .dgwt-wcas-ico-magnifier { fill: #fff !important; }
.cp2-popular { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.cp2-popular::-webkit-scrollbar { display: none; }
.cp2-popular span { flex: none; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 900; }
.cp2-popular a {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none;
  font-size: 13px; font-weight: 700; transition: background .2s, color .2s;
}
.cp2-popular a:hover { background: var(--c2-yellow); color: var(--c2-ink) !important; }

.cp2-header.is-scrolled .cp2-top { height: 64px; }
.cp2-header.is-scrolled .cp2-logo img { height: 48px; }
.cp2-header.is-scrolled .cp2-popular { display: none; }
.cp2-header.is-scrolled .cp2-bar__inner { padding-bottom: 14px; }

@media (max-width: 1180px) { .cp2-nav a { padding: 10px 8px; font-size: 13px; } }
@media (max-width: 999px) {
  .cp2-nav { display: none; }
  .cp2-top { height: 68px; gap: 10px; }
  .cp2-logo img { height: 52px; }
  .cp2-catbtn--mobile {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: 12px; box-shadow: 0 3px 0 var(--c2-red-dark) !important;
  }
  .cp2-bar .cp2-catbtn { display: none; }
  .cp2-ico { min-width: 48px; padding: 4px; }
  .cp2-ico span { display: none; }
  .cp2-ico img { width: 30px; height: 30px; }
  .cp2-count { right: 0; }
  .cp2-bar__inner { padding-top: 10px; padding-bottom: 8px; }
  .cp2-header.is-scrolled .cp2-top { height: 56px; }
  .cp2-header.is-scrolled .cp2-logo img { height: 42px; }
}
@media (max-width: 689px) {
  .cp2-ico--search { display: none; }
  .cp2-search .dgwt-wcas-search-submit { padding: 0 14px !important; }
}

/* ---------- Cajón de categorías (también en escritorio) ---------- */
.cp-sb--drawer .cp-sb__overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cp-sb--drawer .cp-sb__panel {
  position: fixed; z-index: 9999; top: 0; left: 0; bottom: 0; width: min(400px, 90vw); max-height: none;
  border: 0; border-radius: 0 22px 22px 0; transform: translateX(-102%); transition: transform .35s var(--cp-ease);
}
.cp-sb--drawer .cp-sb__scroll { flex: 1; }
.cp-sb--drawer .cp-sb__close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border-radius: 50%;
  border: 0; background: var(--cp-soft) !important; color: var(--cp-fg) !important; cursor: pointer;
}
.cp-sb--drawer.is-open .cp-sb__overlay { opacity: 1; pointer-events: auto; }
.cp-sb--drawer.is-open .cp-sb__panel { transform: none; }
body.cp-v2 .cp-sb { --cp-accent: var(--c2-red); --cp-accent-dark: var(--c2-red-dark); --cp-fg: var(--c2-ink); }
body.cp-v2 .cp-sb__title { font-weight: 900; }

/* =========================================================
   Mochila deslizante
   ========================================================= */
.cp2-cart { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.cp2-cart__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s; }
.cp2-cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 0 0 22px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .2);
  transform: translateX(102%); transition: transform .38s var(--c2-ease);
}
.cp2-cart.is-open { pointer-events: auto; }
.cp2-cart.is-open .cp2-cart__overlay { opacity: 1; }
.cp2-cart.is-open .cp2-cart__panel { transform: none; }
.cp2-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--c2-line); }
.cp2-cart__title { margin: 0 !important; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.cp2-cart__close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; border: 0; border-radius: 50%;
  background: var(--c2-soft) !important; color: var(--c2-ink) !important; cursor: pointer; transition: transform .2s, background .2s;
}
.cp2-cart__close:hover { transform: rotate(90deg); background: var(--c2-line) !important; }
.cp2-cart__body { flex: 1; overflow-y: auto; padding: 16px 18px 22px; overscroll-behavior: contain; }
.cp2-cart__body .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.cp2-cart .woocommerce-mini-cart { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.cp2-cart .woocommerce-mini-cart-item {
  position: relative; display: grid !important; grid-template-columns: 72px 1fr; gap: 2px 14px; align-items: center;
  padding: 10px 38px 10px 10px !important; margin: 0 !important; border: 1px solid var(--c2-line); border-radius: 16px; background: #fff;
}
.cp2-cart .woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: var(--c2-ink) !important; font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; }
.cp2-cart .woocommerce-mini-cart-item img {
  grid-row: span 2; width: 72px !important; height: 72px !important; margin: 0 !important; float: none !important;
  object-fit: contain; border-radius: 12px; background: var(--c2-soft);
}
.cp2-cart .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 14px; font-weight: 900; color: var(--c2-red); }
.cp2-cart .woocommerce-mini-cart-item .remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c2-soft); color: var(--c2-muted) !important; font-size: 17px; line-height: 1; text-decoration: none;
}
.cp2-cart .woocommerce-mini-cart-item .remove:hover { background: var(--c2-red); color: #fff !important; }
.cp2-cart .woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 12px !important; padding: 16px 18px !important;
  border-radius: 16px; background: var(--c2-soft); border: 0 !important; font-weight: 700;
}
.cp2-cart .woocommerce-mini-cart__total { margin-top: 16px !important; }
.cp2-cart .woocommerce-mini-cart__total .amount { font-size: 22px; font-weight: 900; }
.cp2-cart .woocommerce-mini-cart__buttons { display: flex !important; flex-direction: column-reverse; gap: 10px; margin: 0 !important; }
.cp2-cart .woocommerce-mini-cart__buttons .button { width: 100%; margin: 0 !important; text-align: center; }
.cp2-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
  background: #fff !important; color: var(--c2-blue) !important; border: 2px solid var(--c2-blue) !important; box-shadow: none !important;
}
.cp2-cart .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--c2-blue) !important; color: #fff !important; }
.cp2-cart .woocommerce-mini-cart__empty-message {
  margin: 30px 0 0 !important; padding: 36px 20px; text-align: center; border: 2px dashed var(--c2-line); border-radius: 20px;
  color: var(--c2-muted); font-weight: 700;
}

/* ---------- Aviso "¡Capturado!" ---------- */
.cp2-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10001;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 14px; border-radius: 18px;
  background: var(--c2-ink); color: #fff;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .6);
  transform: translate(-50%, 160%); opacity: 0; transition: transform .38s var(--c2-ease), opacity .3s;
}
.cp2-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.cp2-toast__ball {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; position: relative;
  background: linear-gradient(var(--c2-red) 0 43%, #fff 43% 57%, #fff 57%);
  animation: cp2-wobble .9s var(--c2-ease) 1;
}
.cp2-toast__ball::before { content: ""; position: absolute; left: 0; right: 0; top: 43%; height: 3px; background: var(--c2-ink); }
.cp2-toast__ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 3px solid var(--c2-ink); }
@keyframes cp2-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 45% { transform: rotate(14deg); } 70% { transform: rotate(-8deg); } }
.cp2-toast__txt { display: flex; flex-direction: column; min-width: 0; }
.cp2-toast__txt strong { font-size: 15px; font-weight: 900; }
.cp2-toast__txt span { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.cp2-toast button {
  flex: none; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  background: var(--c2-red) !important; color: #fff !important; font-size: 14px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 3px 0 var(--c2-red-dark) !important;
}
@media (max-width: 600px) {
  .cp2-toast { left: 16px; right: 16px; transform: translateY(160%); max-width: none; bottom: 16px; }
  .cp2-toast.is-on { transform: none; }
  .cp2-toast__txt span { max-width: 150px; }
}

/* =========================================================
   Botones
   ========================================================= */
body.cp-v2 :is(.button, button.button, a.button, input.button, .single_add_to_cart_button, .wp-element-button, .elementor-button, .checkout-button, #place_order, .wc-block-components-button:not(.is-link)) {
  font-family: var(--c2-font) !important;
  font-weight: 900 !important; letter-spacing: .03em; text-transform: uppercase;
  border-radius: 999px !important; border: 0 !important;
  background: var(--c2-red) !important; color: #fff !important;
  box-shadow: 0 4px 0 var(--c2-red-dark) !important;
  min-height: 46px; padding: 0 22px !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, box-shadow .12s, background .2s !important;
}
body.cp-v2 :is(.button, .single_add_to_cart_button, .wp-element-button, .elementor-button, .checkout-button, #place_order):hover {
  background: #f04416 !important; transform: translateY(-1px); box-shadow: 0 5px 0 var(--c2-red-dark) !important;
}
body.cp-v2 :is(.button, .single_add_to_cart_button, .wp-element-button, .elementor-button, .checkout-button, #place_order):active {
  transform: translateY(3px); box-shadow: 0 1px 0 var(--c2-red-dark) !important;
}
body.cp-v2 .button.loading { opacity: .75; }
/* Pokébola en los botones de capturar */
body.cp-v2 :is(.add_to_cart_button, .single_add_to_cart_button)::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(#fff 0 42%, transparent 42% 58%, transparent 58%);
  box-shadow: inset 0 0 0 3px var(--c2-red);
}

/* =========================================================
   Tienda — tarjetas de producto
   ========================================================= */
body.cp-v2 ul.products { gap: 18px !important; }
body.cp-v2 ul.products li.product {
  background: #fff; border: 1px solid var(--c2-line); border-radius: var(--c2-radius);
  padding: 12px 12px 16px !important; text-align: left !important;
  display: flex; flex-direction: column;
  transition: transform .25s var(--c2-ease), box-shadow .25s var(--c2-ease), border-color .25s;
}
body.cp-v2 ul.products li.product:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .35); }
body.cp-v2 ul.products li.product .ct-media-container,
body.cp-v2 ul.products li.product figure { border-radius: 14px; overflow: hidden; background: var(--c2-soft); margin-bottom: 12px !important; }
body.cp-v2 ul.products li.product img { object-fit: contain !important; transition: transform .35s var(--c2-ease); }
body.cp-v2 ul.products li.product:hover img { transform: scale(1.04); }
body.cp-v2 ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important; font-weight: 700 !important; line-height: 1.3 !important; text-align: left !important;
  color: var(--c2-ink) !important; margin: 0 0 8px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
body.cp-v2 ul.products li.product .price {
  font-size: 19px !important; font-weight: 900 !important; color: var(--c2-ink) !important; margin: 0 0 12px !important;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; justify-content: flex-start !important;
}
body.cp-v2 ul.products li.product .price del { font-size: 13px; font-weight: 700; color: var(--c2-muted) !important; opacity: 1; }
body.cp-v2 ul.products li.product .price ins { text-decoration: none; color: var(--c2-red) !important; }
body.cp-v2 ul.products li.product :is(.ct-woo-card-actions, .ct-woo-card-extra) { margin-top: auto; justify-content: stretch !important; }
body.cp-v2 ul.products li.product .button { width: 100%; min-height: 44px; font-size: 13px !important; }
body.cp-v2 .onsale, body.cp-v2 .ct-woo-badge-onsale {
  background: var(--c2-yellow) !important; color: var(--c2-ink) !important;
  font-family: var(--c2-font) !important; font-weight: 900 !important; font-size: 12px !important;
  border-radius: 999px !important; min-height: 0 !important; height: auto !important; line-height: 1 !important;
  padding: 7px 10px !important; box-shadow: 0 2px 0 var(--c2-yellow-dark);
}
body.cp-v2 .woocommerce-result-count { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--c2-muted); }
body.cp-v2 .woocommerce-ordering select { border-radius: 12px !important; border: 1px solid var(--c2-line) !important; height: 44px; font-weight: 700; }
body.cp-v2 :is(.page-title, .woocommerce-products-header__title, .entry-header h1) { font-size: clamp(28px, 4vw, 44px) !important; font-weight: 900 !important; font-style: italic; text-transform: uppercase; }
body.cp-v2 .woocommerce-pagination .page-numbers :is(a, span) { border-radius: 12px !important; font-weight: 900; }
body.cp-v2 .woocommerce-pagination .page-numbers .current { background: var(--c2-red) !important; color: #fff !important; }

/* =========================================================
   Ficha de producto
   ========================================================= */
body.cp-v2.single-product .product_title { font-size: clamp(24px, 3vw, 36px) !important; font-weight: 900 !important; line-height: 1.15; }
body.cp-v2.single-product .summary .price { font-size: 30px !important; font-weight: 900 !important; color: var(--c2-red) !important; }
body.cp-v2.single-product .summary .price del { font-size: 18px; color: var(--c2-muted) !important; }
body.cp-v2.single-product .woocommerce-product-gallery { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--c2-line); }
body.cp-v2.single-product .woocommerce-product-details__short-description { font-size: 16px; color: var(--c2-muted); }
body.cp-v2.single-product form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
body.cp-v2.single-product form.cart .quantity { border-radius: 999px; overflow: hidden; border: 1px solid var(--c2-line); }
body.cp-v2.single-product .single_add_to_cart_button { min-height: 54px; padding: 0 30px !important; font-size: 16px !important; flex: 1; }
body.cp-v2 .woocommerce-tabs .tabs li a { font-weight: 900 !important; text-transform: uppercase; letter-spacing: .05em; }
body.cp-v2 .stock.in-stock { color: #1f8a4c !important; font-weight: 900; }
body.cp-v2 .product_meta { font-size: 13px; color: var(--c2-muted); }

/* =========================================================
   Pie de página
   ========================================================= */
.cp2-footer { margin-top: 60px; background: var(--c2-ink); color: rgba(255, 255, 255, .78); }
.cp2-perks { background: #fff; border-top: 1px solid var(--c2-line); }
.cp2-perks__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.cp2-perk { display: flex; align-items: center; gap: 14px; color: var(--c2-ink); }
.cp2-perk svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: rgba(227, 53, 13, .1); color: var(--c2-red); }
.cp2-perk strong { display: block; font-size: 15px; font-weight: 900; }
.cp2-perk span { font-size: 13px; color: var(--c2-muted); }
.cp2-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.cp2-footer__brand img { width: 110px; height: auto; margin-bottom: 14px; }
.cp2-footer__brand p { max-width: 380px; font-size: 14px; line-height: 1.6; margin: 0 0 18px; color: rgba(255, 255, 255, .7); }
.cp2-social { display: flex; gap: 10px; }
.cp2-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: #fff !important; transition: background .2s, transform .2s;
}
.cp2-social a:hover { background: var(--c2-red); transform: translateY(-2px); }
.cp2-footer__col { display: flex; flex-direction: column; gap: 10px; }
.cp2-footer__col p { margin: 0 0 6px; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cp2-footer__col a { color: rgba(255, 255, 255, .72) !important; text-decoration: none; font-size: 15px; transition: color .2s; }
.cp2-footer__col a:hover { color: var(--c2-yellow) !important; }
.cp2-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
@media (max-width: 899px) {
  .cp2-perks__inner { grid-template-columns: 1fr; gap: 14px; }
  .cp2-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cp2-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Ajustes v2.1 ---------- */
body.cp-v2 .cp2-dialog .cp2-dialog__text { font-family: pokemon-gb, monospace !important; font-weight: 400; }
.cp2-search .dgwt-wcas-sf-wrapp { display: flex !important; align-items: center; gap: 6px; }
.cp2-search .dgwt-wcas-sf-wrapp > .dgwt-wcas-ico-magnifier, .cp2-search .dgwt-wcas-sf-wrapp > svg:not(.dgwt-wcas-ico-magnifier-handler) { display: none !important; }
.cp2-search input[type=search].dgwt-wcas-search-input { flex: 1; order: 1; padding-left: 14px !important; padding-right: 10px !important; }
.cp2-search .dgwt-wcas-search-submit {
  position: static !important; order: 2; flex: none; display: inline-flex !important; align-items: center; gap: 8px;
  color: #fff !important; font-weight: 900 !important; font-size: 14px !important; box-shadow: none !important;
}
.cp2-search .dgwt-wcas-search-submit::after { content: "Buscar"; font-family: var(--c2-font); }
@media (max-width: 689px) { .cp2-search .dgwt-wcas-search-submit::after { content: none; } }
.cp2-search .dgwt-wcas-preloader { right: 120px !important; }
body.cp-v2 ul.products li.product figure { padding: 0 !important; margin: 0 0 12px !important; }
body.cp-v2 ul.products li.product .ct-media-container { margin: 0 !important; aspect-ratio: 1 / 1; display: grid !important; place-items: center; }
body.cp-v2 ul.products li.product .ct-media-container img { width: 100% !important; height: 100% !important; padding: 10px; background: transparent !important; }
body.cp-v2 ul.products li.product .ct-media-container::after { display: none !important; }
body.cp-v2 .add_to_cart_button::before, body.cp-v2 .single_add_to_cart_button::before {
  content: "" !important; display: inline-block !important; position: static !important; opacity: 1 !important; visibility: visible !important;
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; animation: none !important;
  background: linear-gradient(#fff 0 40%, var(--c2-red) 40% 60%, var(--c2-red) 60%) !important; box-shadow: inset 0 0 0 2px var(--c2-red);
}
/* Buscador: estilo pirx -> barra con botón "Buscar" a la derecha */
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp { display: flex !important; align-items: center; padding: 4px !important; }
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { padding: 0 14px !important; margin: 0 !important; }
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  position: relative !important; left: auto !important; top: auto !important; right: auto !important;
  width: auto !important; min-width: 0 !important; height: 42px !important; min-height: 42px !important;
  padding: 0 20px !important; border-radius: 10px !important; pointer-events: auto !important;
  background: var(--c2-red) !important; display: inline-flex !important; gap: 8px; order: 2;
}
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg { fill: #fff !important; color: #fff; }
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg path { fill: #fff !important; }
.cp2-search .dgwt-wcas-voice-search { position: static !important; order: 1; }
.cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg { display: none !important; }
.cp2-cart { --cp-fg: var(--c2-ink); --cp-accent: var(--c2-red); }
.cp2-cart .cp-ico { width: 28px; height: 28px; }
body.cp-v2 .add_to_cart_button::before, body.cp-v2 .single_add_to_cart_button::before {
  border-color: var(--c2-ink) !important; border-width: 2px !important;
  background: linear-gradient(#fff 0 42%, var(--c2-ink) 42% 58%, #fff 58%) !important; box-shadow: none !important;
}
.cp2-cart .woocommerce-mini-cart__empty-message, .cp2-cart .woocommerce-info { border-radius: 16px; }
.cp2-search .dgwt-wcas-voice-search, .cp2-search .dgwt-wcas-preloader { display: none !important; }
.cp2-footer__bottom .cp2-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cp2-footer__bottom a { color: rgba(255,255,255,.55) !important; text-decoration: none; }
.cp2-footer__bottom a:hover { color: var(--c2-yellow) !important; }

/* Mochila: contraste nombre / precio */
.cp2-cart .woocommerce-mini-cart-item a:not(.remove),
.cp2-cart .woocommerce-mini-cart-item .product-title,
.cp2-cart .woocommerce-mini-cart-item a:not(.remove) * { color: var(--c2-ink) !important; font-weight: 700 !important; font-size: 14px !important; line-height: 1.35 !important; text-decoration: none !important; }
.cp2-cart .woocommerce-mini-cart-item .quantity,
.cp2-cart .woocommerce-mini-cart-item .quantity * { display: inline-block; margin-top: 6px; color: var(--c2-red) !important; font-size: 16px !important; font-weight: 900 !important; }
.cp2-cart .woocommerce-mini-cart-item .quantity { padding: 3px 10px; border-radius: 999px; background: rgba(227, 53, 13, .08); }

/* ---------- Buscador desplegable en celular (como SNP) ---------- */
.cp2-search .dgwt-wcas-search-submit::after { content: "Buscar" !important; }
@media (max-width: 999px) {
  .cp2-ico--search { display: flex !important; }
  .cp2-bar__inner { display: none !important; }
  .cp2-header.show-search .cp2-bar__inner { display: flex !important; animation: cp2Drop .28s var(--c2-ease); padding-top: 12px; padding-bottom: 12px; }
  .cp2-header.show-search .cp2-ico--search { background: var(--c2-soft) !important; }
  .cp2-header.show-search .cp2-popular { display: none; }
  .cp2-popular { padding-top: 10px; }
}
@keyframes cp2Drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Título de páginas simples ---------- */
body.cp-v2 .cp2-page-title { margin: 10px 0 24px !important; font-size: clamp(28px, 4vw, 44px) !important; font-weight: 900 !important; font-style: italic; text-transform: uppercase; }

/* ---------- WhatsApp Pokébola ---------- */
.cp2-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 995; width: 64px; height: 64px; border-radius: 50%;
  display: block; text-decoration: none !important;
  background: linear-gradient(var(--c2-red) 0 46%, var(--c2-ink) 46% 54%, #fff 54%);
  border: 4px solid var(--c2-ink);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .5), inset 0 -6px 0 rgba(0, 0, 0, .08), inset 0 6px 0 rgba(255, 255, 255, .18);
  transition: transform .2s var(--c2-ease);
}
.cp2-wa::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(227, 53, 13, .45);
  animation: cp2WaRing 2.4s ease-out infinite; pointer-events: none;
}
@keyframes cp2WaRing { 0% { transform: scale(.88); opacity: 1; } 100% { transform: scale(1.28); opacity: 0; } }
.cp2-wa__btn {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--c2-ink);
  color: #1fb855; transition: transform .2s var(--c2-ease);
}
.cp2-wa__btn svg { width: 17px; height: 17px; }
.cp2-wa:hover { animation: cp2-wobble .8s var(--c2-ease) 1; }
.cp2-wa:hover .cp2-wa__btn { transform: translate(-50%, -50%) scale(1.12); }
.cp2-wa__tip {
  position: absolute; right: calc(100% + 14px); top: 50%; white-space: nowrap; background: var(--c2-ink); color: #fff;
  font-size: 13px; font-weight: 900; padding: 8px 12px; border-radius: 10px; opacity: 0; transform: translate(6px, -50%);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.cp2-wa:hover .cp2-wa__tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 999px) { .cp2-wa { right: 14px; bottom: 14px; width: 56px; height: 56px; } .cp2-wa__btn { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .cp2-wa::after { animation: none; } }
html.cp-lock .cp2-wa { display: none; }
body:has(.cp2-toast.is-on) .cp2-wa { opacity: 0; pointer-events: none; }

/* Fotos de producto completas, sin recortes */
body.cp-v2 ul.products li.product .ct-media-container {
  position: relative !important; aspect-ratio: 4 / 5 !important; height: auto !important; display: block !important; overflow: hidden;
}
body.cp-v2 ul.products li.product .ct-media-container img {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important;
  aspect-ratio: auto !important; object-fit: contain !important; object-position: center !important; padding: 10px !important;
}
body.cp-v2 ul.products li.product:hover .ct-media-container img { transform: scale(1.03); }

/* Sin desborde horizontal en celular (evita que el navegador aleje la vista) */
html, body { overflow-x: clip !important; max-width: 100%; }
.cp2-home, .cp2-hero, .cp2-hero__inner, .cp2-hero__art { max-width: 100%; }
@media (max-width: 899px) { .cp2-hero__art { overflow: visible; } .cp2-hero__card--3 { right: 2% !important; } .mm-art-map .cp2-hero__card--3, .mm-art-gacha .cp2-hero__card--1 { right: 4% !important; } .cp2-hero__tag { right: 6% !important; } .cp2-sec--dark { margin-left: 10px !important; margin-right: 10px !important; } }

/* Fotos de producto sin fondo blanco: el blanco toma el color del marco */
body.mm ul.products li.product .ct-media-container img,
body.mm .cp2-hero__card img,
body.mm .cp2-cart .woocommerce-mini-cart-item img,
body.mm .cp-order__items img,
body.mm.single-product .woocommerce-product-gallery img,
body.mm .cp-thumb img,
body.mm .cp2-cat__img img { mix-blend-mode: multiply; }
body.mm.single-product .woocommerce-product-gallery { background: var(--c2-soft) !important; }
body.mm .cp2-cart .woocommerce-mini-cart-item img, body.mm .cp-order__items img { background: transparent !important; }

/* Paginación de Blocksy con el estilo del kit PixelUp */
body.cp-v2 .ct-pagination { display: flex !important; flex-wrap: wrap; justify-content: center !important; align-items: center; gap: 10px; margin: 40px 0 16px !important; border: 0 !important; }
body.cp-v2 .ct-pagination > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
body.cp-v2 .ct-pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 12px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 14px !important; border: 2px solid var(--c2-line) !important; background: #fff !important; color: var(--c2-ink) !important; font-weight: 900; text-decoration: none !important; box-shadow: none !important; transition: transform .15s, border-color .15s; }
body.cp-v2 .ct-pagination a.page-numbers:hover { border-color: var(--c2-ink) !important; transform: translateY(-2px); }
body.cp-v2 .ct-pagination .page-numbers.current { background: var(--c2-red) !important; border-color: var(--c2-red) !important; color: #fff !important; }
body.cp-v2 .ct-pagination .page-numbers.dots { border-color: transparent !important; background: transparent !important; }
body.cp-v2 .ct-pagination :is(.next, .prev) { gap: 8px; padding: 0 20px; background: var(--c2-ink) !important; border-color: var(--c2-ink) !important; color: #fff !important; text-transform: none; letter-spacing: 0; }
body.cp-v2 .ct-pagination :is(.next, .prev) svg { fill: currentColor; }
.cp2-pyflag { display: inline-block; vertical-align: -2px; margin-right: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); border-radius: 2px; }

/* ===== PixelUp · encabezado en celulares angostos (≤430px): todo entra en la pantalla ===== */
@media (max-width: 430px) {
  .cp2-top { gap: 8px; }
  .cp2-logo { flex: 0 1 auto; min-width: 0; }
  .cp2-logo img { height: auto; max-height: 48px; max-width: 100%; }
  .cp2-header.is-scrolled .cp2-logo img { max-height: 40px; }
  .cp2-icons { gap: 2px; flex: none; }
  .cp2-ico { min-width: 40px; width: 40px; height: 40px; padding: 3px; }
  .cp2-ico img, .cp2-ico svg { width: 26px; height: 26px; }
}
@media (max-width: 360px) {
  .cp2-logo img { max-height: 40px; }
  .cp2-ico { min-width: 36px; width: 36px; height: 36px; }
  .cp2-ico img, .cp2-ico svg { width: 24px; height: 24px; }
}

/* ===== PixelUp · el aviso oculto no debe capturar toques ===== */
.cp2-toast:not(.is-on) { pointer-events: none; visibility: hidden; }
