/* =========================================================
   MOCHIMOCHI — Piel GASHAPON (máquina de cápsulas, pastel kawaii)
   ========================================================= */
body.mm-gashapon {
  --c2-red: #ff6fae;        /* principal: rosa cápsula */
  --c2-red-dark: #d9488a;
  --c2-yellow: #ffe36e;     /* limón */
  --c2-yellow-dark: #d9b52f;
  --c2-blue: #3fbf9b;       /* menta */
  --c2-blue-dark: #2a9478;
  --c2-ink: #3b2a4a;
  --c2-muted: #7a6a88;
  --c2-line: #efe2f2;
  --c2-soft: #fbf3fd;
  --c2-bg: #fffaf6;
  --g-lilac: #b9a4ff; --g-sky: #8fd3ff; --g-mint: #7be0c3;
  --c2-font: 'Nunito', system-ui, sans-serif;
  --mm-display: 'Mochiy Pop One', 'Nunito', sans-serif;
  background-image: radial-gradient(rgba(59, 42, 74, .06) 1.2px, transparent 1.6px) !important;
  background-size: 20px 20px !important;
}
body.mm-gashapon :is(h1, h2, h3, .cp2-hero__title, .cp2-sec__title, .cp-order__title, .cp2-cart__title, .cp-sb__title, .cp2-page-title, .page-title, .product_title, .woocommerce-products-header__title) {
  font-family: var(--mm-display) !important; font-weight: 400 !important; font-style: normal !important; letter-spacing: 0 !important; text-transform: none !important;
}
body.mm-gashapon .cp2-nav a { font-family: var(--mm-display) !important; font-weight: 400 !important; text-transform: none; letter-spacing: 0; font-size: 14px; }
body.mm-gashapon :is(.button, .single_add_to_cart_button, .cp2-btn, .cp2-catbtn, .cp-order__submit) { font-family: var(--mm-display) !important; font-weight: 400 !important; letter-spacing: .01em; }
body.mm-gashapon .cp2-ico span { font-family: var(--mm-display) !important; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* Logo ancho */
body.mm .cp2-logo img { height: 58px; width: auto; max-width: 260px; object-fit: contain; }
body.mm .cp2-header.is-scrolled .cp2-logo img { height: 44px; }
@media (max-width: 999px) { body.mm .cp2-logo img { height: 40px; max-width: 170px; } }
body.mm .mm-footer-logo { width: 220px !important; height: auto; background: #fff; border-radius: 14px; padding: 8px 12px; }
body.mm .cp2-ico svg { width: 34px; height: 34px; }

/* ---------- Cartel: marquesina rosa ---------- */
body.mm-gashapon .cp2-banner { background: var(--c2-red); padding: 0; overflow: hidden; background-image: none; }
body.mm-gashapon .cp2-dialog { max-width: none; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.mm-gashapon .cp2-dialog .cp2-dialog__text { font-family: var(--mm-display) !important; color: #fff; font-size: 13px; text-transform: none; letter-spacing: .01em; }
body.mm-gashapon .cp2-dialog__text::before, body.mm-gashapon .cp2-dialog__text::after { content: " ✦ "; color: var(--c2-yellow); }
body.mm-gashapon .cp2-dialog__arrow { display: none; }

/* ---------- Barra oscura -> lila suave ---------- */
body.mm-gashapon .cp2-bar { background: var(--c2-ink); }
body.mm-gashapon .cp2-bar::after { background: linear-gradient(90deg, var(--c2-red) 0 25%, var(--g-mint) 25% 50%, var(--c2-yellow) 50% 75%, var(--g-lilac) 75%); }
body.mm-gashapon .cp2-catbtn, body.mm-gashapon .cp2-search .dgwt-wcas-search-submit { border-radius: 999px !important; }
body.mm-gashapon .cp2-search .dgwt-wcas-sf-wrapp, body.mm-gashapon .cp2-search input[type=search].dgwt-wcas-search-input { border-radius: 999px !important; }
body.mm-gashapon .cp2-popular a:hover { background: var(--g-mint); }

/* ---------- Cápsulas en lugar de Pokébolas ---------- */
body.mm-gashapon :is(.cp-ico, .cp-order__ball, .cp2-404__ball),
body.mm-gashapon .cp2-sec__title::before {
  background: linear-gradient(var(--c2-red) 0 50%, #fff 50%) !important;
  border-color: var(--c2-ink) !important;
}
body.mm-gashapon .cp2-sec__title::before { background: linear-gradient(var(--g-mint) 0 50%, #fff 50%) !important; }
body.mm-gashapon :is(.cp-ico, .cp-order__ball, .cp2-404__ball)::after { width: 100% !important; height: 0 !important; border: 0 !important; border-top: 3px solid var(--c2-ink) !important; border-radius: 0 !important; background: none !important; left: 0 !important; top: 50% !important; transform: none !important; }
body.mm-gashapon .cp2-toast__ball { background: linear-gradient(var(--c2-yellow) 0 50%, #fff 50%) !important; }
body.mm-gashapon .cp2-toast__ball::before { top: 50% !important; height: 3px !important; background: var(--c2-ink) !important; margin-top: -1.5px; }
body.mm-gashapon .cp2-toast__ball::after { display: none !important; }
body.mm-gashapon :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before,
body.mm-gashapon #customer_login h2::before,
body.mm-gashapon .woocommerce-MyAccount-navigation li.is-active a::after { background: linear-gradient(var(--c2-red) 0 50%, #fff 50%) !important; }
body.mm-gashapon .cp2-toast, body.mm-gashapon .cp2-toast button { border-radius: 999px !important; }
body.mm-gashapon .cp2-toast button { background: var(--g-mint) !important; color: var(--c2-ink) !important; box-shadow: 0 3px 0 var(--c2-blue-dark) !important; }

/* WhatsApp como cápsula */
body.mm-gashapon .cp2-wa { background: linear-gradient(var(--g-mint) 0 50%, #fff 50%); border-color: var(--c2-ink); }
body.mm-gashapon .cp2-wa::after { border-color: rgba(63, 191, 155, .5); }
body.mm-gashapon .cp2-wa__btn { width: 100%; height: 0; border: 0; border-top: 4px solid var(--c2-ink); border-radius: 0; background: none; top: 50%; color: transparent; }
body.mm-gashapon .cp2-wa__btn svg { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 22px; height: 22px; color: #1fb855; }

/* ---------- Botones y tarjetas ---------- */
body.mm-gashapon :is(.button, .single_add_to_cart_button, .wp-element-button, .checkout-button, #place_order) { border-radius: 999px !important; text-transform: none !important; }
body.mm-gashapon ul.products li.product { border-radius: 26px; border-width: 3px; border-color: var(--c2-line); }
body.mm-gashapon ul.products li.product .ct-media-container { border-radius: 20px; background: var(--c2-soft); }
body.mm-gashapon .onsale, body.mm-gashapon .ct-woo-badge-onsale { background: var(--c2-yellow) !important; }
body.mm-gashapon ul.products li.product .price ins { color: var(--c2-red-dark) !important; }

/* ---------- Portada: máquina de cápsulas ---------- */
body.mm-gashapon .cp2-hero { background: #fff; border-radius: 0 0 44px 44px; background-image: radial-gradient(circle at 12% 20%, rgba(255, 111, 174, .14) 0 90px, transparent 91px), radial-gradient(circle at 90% 80%, rgba(123, 224, 195, .2) 0 120px, transparent 121px); }
body.mm-gashapon .cp2-pill { background: var(--g-lilac); color: var(--c2-ink); }
body.mm-gashapon .cp2-pill span { background: #fff; }
body.mm-gashapon .cp2-hero__title { line-height: 1.05 !important; font-size: clamp(38px, 5.4vw, 66px) !important; color: var(--c2-ink); }
body.mm-gashapon .cp2-hero__title em { display: inline; color: var(--c2-red); -webkit-text-stroke: 0; text-shadow: none; font-style: normal; }
body.mm-gashapon .cp2-btn { border-radius: 999px; font-family: var(--mm-display); font-weight: 400; }
body.mm-gashapon .cp2-btn--blue { background: var(--g-mint); color: var(--c2-ink) !important; box-shadow: 0 5px 0 var(--c2-blue-dark); }
body.mm-gashapon .cp2-stats b { font-family: var(--mm-display); font-style: normal; font-weight: 400; }

.mm-art-gacha { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.mm-machine { position: absolute; left: 4%; top: 2%; width: 56%; z-index: 1; }
.mm-machine__dome { position: relative; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--c2-ink); overflow: hidden; z-index: 2;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 9%, rgba(255,255,255,.4) 10% 22%, rgba(220,240,255,.55) 23%); }
.mm-ball { position: absolute; width: 27%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--c2-ink); }
.mm-ball::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 50%; background: rgba(255,255,255,.9); border-radius: 0 0 999px 999px; border-top: 3px solid var(--c2-ink); }
.mm-machine__body { position: relative; margin-top: -24px; padding: 34px 16px 16px; border-radius: 22px 22px 16px 16px; background: var(--c2-red); border: 8px solid var(--c2-ink); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.mm-machine__label { font-family: var(--mm-display); color: #fff; font-size: 13px; line-height: 1.3; text-shadow: 0 2px 0 var(--c2-red-dark); }
.mm-knob { width: 58px; height: 58px; padding: 0 !important; min-height: 0 !important; border-radius: 50% !important; background: var(--c2-yellow) !important; border: 6px solid var(--c2-ink) !important; position: relative; cursor: pointer; box-shadow: none !important; transition: transform .7s cubic-bezier(.2,.8,.2,1) !important; }
.mm-knob::before { content: "" !important; position: absolute; left: 50%; top: 50%; width: 70%; height: 14px; transform: translate(-50%, -50%); border-radius: 8px; background: var(--c2-ink); display: block !important; }
.mm-machine__slot { margin: 10px auto 0; width: 46%; height: 30px; border-radius: 0 0 16px 16px; background: var(--c2-ink); position: relative; }
.mm-drop { position: absolute; left: 50%; top: 4px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; border: 3px solid var(--c2-ink); opacity: 0; background: var(--g-mint); }
.mm-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 50%; background: #fff; border-radius: 0 0 999px 999px; border-top: 3px solid var(--c2-ink); }
.mm-drop.is-on { animation: mmDrop .9s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes mmDrop { 0% { opacity: 0; transform: translateY(-26px) scale(.6); } 60% { opacity: 1; transform: translateY(36px) scale(1.05) rotate(20deg); } 100% { opacity: 1; transform: translateY(30px) rotate(0); } }
.mm-art-gacha .cp2-hero__card { width: 40%; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 24px 40px -18px rgba(59, 42, 74, .45); z-index: 3; }
.mm-art-gacha .cp2-hero__card--1 { left: auto; right: 22%; top: 40%; transform: rotate(-6deg); }
.mm-art-gacha .cp2-hero__card--2 { left: auto; right: 0; top: 8%; transform: rotate(7deg); z-index: 2; }
.mm-art-gacha .cp2-hero__card--3 { left: auto; right: -2%; top: 52%; transform: rotate(10deg); width: 34%; }
.mm-art-gacha:hover .cp2-hero__card--1 { transform: rotate(-9deg) translateY(-8px); }
.mm-art-gacha:hover .cp2-hero__card--2 { transform: rotate(4deg) translateY(-10px); }
.mm-art-gacha:hover .cp2-hero__card--3 { transform: rotate(13deg) translateY(-8px); }
body.mm-gashapon .cp2-hero__tag { right: 30%; top: 2%; background: var(--g-lilac); color: var(--c2-ink); box-shadow: 0 4px 0 #8f78e0; font-family: var(--mm-display); font-weight: 400; font-style: normal; text-transform: none; border-radius: 999px; }
@media (max-width: 899px) { .mm-art-gacha { max-width: 380px; } }

/* Secciones */
body.mm-gashapon .cp2-eyebrow { color: var(--c2-red-dark); }
body.mm-gashapon .cp2-sec__link { color: var(--c2-blue-dark) !important; }
body.mm-gashapon .cp2-sec--dark { background: var(--c2-ink); background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.6px); background-size: 18px 18px; border-radius: 40px; }
body.mm-gashapon .cp2-sec--dark .cp2-eyebrow { color: var(--g-mint); }
body.mm-gashapon .cp2-exp { border-radius: 999px; }
body.mm-gashapon .cp2-exp:hover { background: var(--c2-red); border-color: var(--c2-red); }
body.mm-gashapon .cp2-sec--sale { background: var(--g-lilac); background-image: radial-gradient(circle at 12px 12px, rgba(255,255,255,.35) 2px, transparent 2.5px); background-size: 24px 24px; }
body.mm-gashapon .cp2-cat__img { border-color: #fff; }
body.mm-gashapon .cp2-cat:nth-child(4n+1) .cp2-cat__img { box-shadow: 0 0 0 4px var(--c2-red), 0 10px 22px -14px rgba(0,0,0,.4); }
body.mm-gashapon .cp2-cat:nth-child(4n+2) .cp2-cat__img { box-shadow: 0 0 0 4px var(--g-mint), 0 10px 22px -14px rgba(0,0,0,.4); }
body.mm-gashapon .cp2-cat:nth-child(4n+3) .cp2-cat__img { box-shadow: 0 0 0 4px var(--c2-yellow), 0 10px 22px -14px rgba(0,0,0,.4); }
body.mm-gashapon .cp2-cat:nth-child(4n+4) .cp2-cat__img { box-shadow: 0 0 0 4px var(--g-lilac), 0 10px 22px -14px rgba(0,0,0,.4); }
body.mm-gashapon .cp2-cat__name { font-family: var(--mm-display); font-weight: 400; font-size: 13px; }
.mm-tcg-products { margin-top: 22px; }

/* Pie */
body.mm-gashapon .cp2-footer { background: var(--c2-ink); }
body.mm-gashapon .cp2-perk svg { background: rgba(255, 111, 174, .14); color: var(--c2-red-dark); border-radius: 50%; }
body.mm-gashapon .cp2-footer__col p { font-family: var(--mm-display); font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 15px; }
body.mm-gashapon .cp2-footer__col a:hover { color: var(--g-mint) !important; }

/* Pedido y Mochila */
body.mm-gashapon .cp-order__dialog, body.mm-gashapon .cp2-cart__panel { border-radius: 30px; }
body.mm-gashapon .cp2-cart__panel { border-radius: 30px 0 0 30px; }
body.mm-gashapon .cp-sb { --cp-accent: var(--c2-red-dark); }

/* Ajustes */
body.mm ul.products li.product a:not(.button), body.mm ul.products li.product .woocommerce-loop-product__title { color: var(--c2-ink) !important; }
.mm-art-gacha .cp2-hero__card { width: 36%; }
.mm-art-gacha .cp2-hero__card--2 { right: 2%; top: 0; transform: rotate(6deg); }
.mm-art-gacha .cp2-hero__card--1 { right: 0; top: 50%; transform: rotate(-5deg); }
.mm-art-gacha .cp2-hero__card--3 { display: none; }
.mm-art-gacha:hover .cp2-hero__card--1 { transform: rotate(-8deg) translateY(-8px); }
body.mm-gashapon .cp2-hero__tag { right: 34%; top: -2%; }
.mm-machine { width: 58%; left: 0; top: 6%; }
body.mm-gashapon .cp2-hero__card, body.mm-gashapon .cp2-cat__img { background: #fbf3fd !important; }

/* Buscador: botón redondo concéntrico con la barra */
body.mm-gashapon .cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp { border-radius: 999px !important; padding: 5px !important; }
body.mm-gashapon .cp2-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit { border-radius: 999px !important; height: 44px !important; min-height: 44px !important; padding: 0 24px !important; box-shadow: none !important; }
body.mm-gashapon .cp2-search .dgwt-wcas-style-pirx input[type=search].dgwt-wcas-search-input { border-radius: 999px !important; padding-left: 20px !important; }
