/* =========================================================
   Click Market 2.0.6: componentes del tema
   (se carga después de style.css en todo el sitio)
   ========================================================= */

/* ---------- Accesibilidad ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 10px; left: 10px; z-index: 100000; width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; clip-path: none; border-radius: 10px; background: var(--cm-ink); color: var(--cm-white); font-weight: 700;
}
body.cm-lock { overflow: hidden; }
.cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Barra de anuncios ---------- */
.cm-announce { background: var(--cm-purple); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.cm-announce .container { padding: 9px 0; }
.cm-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Encabezado ---------- */
.cm-header { background: color-mix(in srgb, var(--cm-white) 97%, transparent); }
.cm-header-main { grid-template-columns: minmax(175px, 225px) minmax(220px, 1fr) auto; grid-template-areas: "logo search actions"; }
.cm-burger { grid-area: burger; }
.cm-logo { grid-area: logo; }
.cm-search { grid-area: search; }
.cm-actions { grid-area: actions; }
.cm-burger {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: -8px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--cm-ink);
}
.cm-burger:hover { background: var(--cm-soft); }
.cm-search { position: relative; overflow: visible; align-items: stretch; }
.cm-search input[type="search"] { border-radius: 999px; }
.cm-search-cat {
  flex: 0 0 auto; width: auto !important; max-width: 150px; min-height: 0 !important; margin: 0; padding: 0 28px 0 18px !important;
  border: 0 !important; border-right: 1px solid var(--cm-line) !important; border-radius: 999px 0 0 999px !important;
  background-color: transparent !important; color: var(--cm-ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cm-search button { font-size: inherit; }
.cm-badge {
  position: absolute; top: -4px; right: -8px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--cm-yellow); color: #17171b; font-size: 10px; font-weight: 800; line-height: 1;
}
.cm-badge[hidden] { display: none; }
.cm-action { position: relative; border: 0; background: transparent; color: inherit; cursor: pointer; }
.cm-action-icon { width: 42px; padding: 0; border-radius: 50%; }
.cm-action-icon:hover { background: var(--cm-soft); }
.cm-dark-toggle .cm-ico-sun { display: none; }
html[data-theme="dark"] .cm-dark-toggle .cm-ico-sun { display: inline-flex; }
html[data-theme="dark"] .cm-dark-toggle .cm-ico-moon { display: none; }

/* Sugerencias del buscador */
.cm-live {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; overflow: hidden; border: 1px solid var(--cm-line);
  border-radius: 18px; background: var(--cm-white); box-shadow: var(--cm-shadow-hover);
}
.cm-live[hidden] { display: none; }
.cm-live-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; color: var(--cm-ink); }
.cm-live-item:hover, .cm-live-item:focus { background: var(--cm-soft); outline: 0; }
.cm-live-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--cm-soft); }
.cm-live-title { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cm-live-price { font-size: 13px; font-weight: 800; }
.cm-live-price del { color: var(--cm-muted); font-weight: 500; }
.cm-live-price ins { text-decoration: none; }
.cm-live-empty { margin: 0; padding: 16px; color: var(--cm-muted); font-size: 14px; }
.cm-live-all { display: block; padding: 12px 14px; border-top: 1px solid var(--cm-line); color: var(--cm-purple); font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Navegación y mega menú ---------- */
.cm-nav { background: var(--cm-white); }
.cm-nav-inner { position: relative; }
.cm-mega { position: static; }
.cm-mega-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--cm-purple); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cm-mega-btn:hover { background: var(--cm-purple-hover); }
.cm-mega-btn .cm-icon-chevron { transition: transform .18s; }
.cm-mega.is-open .cm-icon-chevron { transform: rotate(180deg); }
.cm-mega-panel {
  position: absolute; top: 100%; left: 0; z-index: 50; display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 30px;
  width: 100%; max-height: 70vh; overflow: auto; padding: 26px 28px; border: 1px solid var(--cm-line); border-radius: 0 0 var(--cm-radius) var(--cm-radius);
  background: var(--cm-white); box-shadow: var(--cm-shadow-hover);
}
.cm-mega.is-open .cm-mega-panel, .cm-mega:hover .cm-mega-panel, .cm-mega:focus-within .cm-mega-panel { display: grid; }
.cm-mega-title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--cm-ink); }
.cm-mega-col ul { margin: 0; padding: 0; list-style: none; }
.cm-mega-col li a { display: block; padding: 4px 0; color: var(--cm-text2); font-size: 13px; }
.cm-mega-col li a:hover, .cm-mega-title:hover { color: var(--cm-purple); }
.cm-menu { flex-wrap: nowrap; }
.cm-menu a { padding: 0; }

/* ---------- Menús laterales, fondo y ventana modal ---------- */
.cm-overlay {
  position: fixed; inset: 0; z-index: 998; background: rgba(15, 12, 30, .5); opacity: 0; transition: opacity .2s;
}
.cm-overlay.is-visible { opacity: 1; }
.cm-overlay[hidden] { display: none; }
.cm-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 999; display: flex; flex-direction: column; width: min(420px, 92vw);
  background: var(--cm-white); color: var(--cm-ink); box-shadow: var(--cm-shadow-hover); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.cm-drawer-left { left: 0; transform: translateX(-100%); }
.cm-drawer-right { right: 0; transform: translateX(100%); }
.cm-drawer.is-open { transform: none; visibility: visible; }
.cm-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cm-line); font-size: 16px; }
.cm-drawer-close, .cm-modal-close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--cm-soft); color: var(--cm-ink); cursor: pointer;
}
.cm-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.cm-mobile-list, .cm-mobile-cats ul { margin: 0; padding: 0; list-style: none; }
.cm-mobile-list a, .cm-mobile-cat, .cm-mobile-cats summary, .cm-mobile-cats li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--cm-line); font-size: 15px; font-weight: 600; }
.cm-mobile-cats summary { cursor: pointer; }
.cm-mobile-cats ul { padding-left: 14px; }
.cm-mobile-cats li a { font-weight: 500; color: var(--cm-text2); }
.cm-mobile-title { margin: 22px 0 6px; color: var(--cm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cm-mobile-extra { margin-top: 18px; }

.cm-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.cm-modal.is-open { display: flex; }
.cm-modal-box { position: relative; width: min(900px, 100%); max-height: 92vh; overflow: auto; border-radius: var(--cm-radius-lg); background: var(--cm-white); box-shadow: var(--cm-shadow-hover); }
.cm-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.cm-modal-body { padding: 28px; }
.cm-qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cm-qv-media img { display: block; width: 100%; height: auto; border-radius: var(--cm-radius); background: var(--cm-soft); }
.cm-qv-info h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; }
.cm-qv-info .price { margin-bottom: 14px; font-size: 22px; font-weight: 800; }
.cm-qv-info .price del { color: var(--cm-muted); font-size: .75em; font-weight: 500; }
.cm-qv-info .price ins { text-decoration: none; }
.cm-qv-desc { margin-bottom: 18px; color: var(--cm-text2); font-size: 14px; line-height: 1.7; }
.cm-qv-link { display: inline-block; margin-top: 14px; color: var(--cm-purple); font-size: 13px; font-weight: 700; }

.cm-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1001; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); padding: 13px 20px;
  border-radius: 999px; background: var(--cm-ink); color: var(--cm-white); font-size: 14px; font-weight: 600; opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s;
}
.cm-toast[hidden] { display: none; }
.cm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cm-toast a { color: var(--cm-yellow); text-decoration: underline; }

/* ---------- Mini-carrito ---------- */
.cm-drawer .woocommerce-mini-cart { margin: 0; padding: 0; list-style: none; }
.cm-drawer .woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--cm-line); font-size: 14px; }
.cm-drawer .woocommerce-mini-cart-item img { grid-row: span 2; width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: var(--cm-soft); }
.cm-drawer .woocommerce-mini-cart-item a:not(.remove) { font-weight: 650; }
.cm-drawer .woocommerce-mini-cart-item .quantity { color: var(--cm-muted); font-size: 13px; }
.cm-drawer .woocommerce-mini-cart-item a.remove {
  position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cm-soft); color: var(--cm-ink) !important; font-size: 16px; line-height: 1; text-decoration: none;
}
.cm-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 18px 0 14px; font-size: 16px; }
.cm-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.cm-drawer .woocommerce-mini-cart__buttons .button { width: 100%; }
.cm-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--cm-soft); color: var(--cm-ink); }
.cm-drawer .woocommerce-mini-cart__empty-message { color: var(--cm-muted); }

.cm-freeship { margin: 0 0 16px; padding: 13px 15px; border-radius: 14px; background: var(--cm-yellow-soft); font-size: 13px; }
.cm-freeship p { margin: 0 0 8px; }
.cm-freeship-bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.cm-freeship-bar span { display: block; height: 100%; border-radius: inherit; background: var(--cm-purple); transition: width .3s; }
.cm-freeship.is-done .cm-freeship-bar span { background: var(--cm-success); }

/* ---------- Migas de pan ---------- */
.woocommerce .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cm-crumb-sep { color: var(--cm-muted); }

/* ---------- Catálogo: columnas, filtros y tarjetas ---------- */
@media (min-width: 1081px) {
  .woocommerce ul.products { grid-template-columns: repeat(var(--cm-cols, 4), minmax(0, 1fr)); }
  .woocommerce .cm-shop-layout.has-sidebar ul.products { grid-template-columns: repeat(var(--cm-cols-side, 3), minmax(0, 1fr)); }
}
.cm-shop-layout { display: block; transition: opacity .15s; }
.cm-shop-layout.is-loading { opacity: .5; pointer-events: none; }
.cm-shop-layout.has-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.cm-shop-results { min-width: 0; }
.cm-sidebar .cm-widget { margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--cm-line); }
.cm-widget-title { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.cm-sidebar ul { margin: 0; padding: 0; list-style: none; }
.cm-sidebar li { margin: 7px 0; font-size: 14px; }
.cm-sidebar a:hover { color: var(--cm-purple); }
.cm-sidebar .count { color: var(--cm-muted); font-size: 12px; }
.cm-sidebar .chosen a { color: var(--cm-purple); font-weight: 700; }
.cm-sidebar .price_slider_wrapper .ui-slider { position: relative; height: 6px; margin: 14px 8px 22px; border-radius: 999px; background: var(--cm-line); }
.cm-sidebar .ui-slider-range { position: absolute; height: 100%; border-radius: inherit; background: var(--cm-purple); }
.cm-sidebar .ui-slider-handle { position: absolute; top: -6px; width: 18px; height: 18px; margin-left: -9px; border: 3px solid var(--cm-white); border-radius: 50%; background: var(--cm-purple); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.cm-sidebar .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.cm-sidebar .price_slider_amount .button { min-height: 38px; padding: 8px 16px; }
.cm-filter-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-white); color: var(--cm-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.cm-sidebar-head { display: none; }
.woocommerce .cm-shop-results .woocommerce-notices-wrapper:empty { display: none; }
.cm-shop-results > .woocommerce-result-count { float: left; margin: 6px 0 20px; }
.cm-shop-results > .woocommerce-ordering { float: right; margin: 0 0 20px; }
.cm-shop-results > ul.products { clear: both; }

.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product a img { transition: transform .35s ease; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.cm-card-actions {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .18s;
}
.woocommerce ul.products li.product:hover .cm-card-actions, .cm-card-actions:focus-within { opacity: 1; transform: none; }
.cm-card-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--cm-line); border-radius: 50%;
  background: var(--cm-white); color: var(--cm-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); cursor: pointer;
}
.cm-card-btn:hover { color: var(--cm-purple); }
.cm-card-btn.is-active { background: var(--cm-purple); border-color: var(--cm-purple); color: #fff; }
.cm-card-btn.is-active .cm-icon-heart { fill: currentColor; }
.woocommerce span.onsale { z-index: 2; }
.cm-low-stock { display: inline-block; align-self: flex-start; margin: 0 17px 10px; padding: 3px 10px; border-radius: 999px; background: #fdecea; color: #a1262f; font-size: 11px; font-weight: 800; }
.cm-pdp-btn.is-active .cm-icon-heart { fill: currentColor; }
@media (hover: none) { .cm-card-actions { opacity: 1; transform: none; } }

/* ---------- Portada ---------- */
.cm-section { margin: 0 0 46px; }
.cm-shop-head h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.6px; }
.cm-more { color: var(--cm-purple); font-size: 14px; font-weight: 700; }

.cm-hero-wrap { position: relative; margin: 0 0 34px; }
.cm-hero { display: none; align-items: center; gap: 32px; min-height: 280px; margin: 0; padding: clamp(26px, 4vw, 52px); border-radius: var(--cm-radius-lg); background: var(--cm-yellow-soft); overflow: hidden; }
.cm-hero.is-active { display: grid; grid-template-columns: 1fr; animation: cm-fade .45s ease; }
.cm-hero.has-image.is-active { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.cm-hero-copy h1, .cm-hero-copy h2 { margin: 0 0 12px; color: var(--cm-purple); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -1.2px; font-weight: 800; }
.cm-hero-copy p { max-width: 560px; margin: 0 0 22px; color: var(--cm-text2); font-size: 16px; }
.cm-hero-media img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.cm-hero-nav { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.cm-hero-arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--cm-line); border-radius: 50%; background: var(--cm-white); color: var(--cm-ink); cursor: pointer; }
.cm-hero-dots { display: flex; gap: 7px; }
.cm-hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .22); cursor: pointer; }
.cm-hero-dots button.is-active { width: 24px; border-radius: 999px; background: var(--cm-purple); }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }

.cm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cm-cat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: var(--cm-white); text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cm-cat-card:hover { transform: translateY(-3px); border-color: var(--cm-purple); box-shadow: var(--cm-shadow-hover); }
.cm-cat-img { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; overflow: hidden; border-radius: 50%; background: var(--cm-soft); }
.cm-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cm-cat-ph { color: var(--cm-purple); font-size: 36px; font-weight: 800; }
.cm-cat-name { font-size: 14px; font-weight: 750; }
.cm-cat-count { color: var(--cm-muted); font-size: 12px; }

.cm-brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 46px; padding: 22px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); }
.cm-brand img { display: block; max-width: 130px; max-height: 44px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.cm-brand:hover img { filter: none; opacity: 1; }

.cm-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cm-quote { margin: 0; padding: 24px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: var(--cm-soft); }
.cm-quote blockquote { margin: 0 0 14px; color: var(--cm-text2); font-size: 15px; line-height: 1.7; }
.cm-quote figcaption { font-size: 14px; font-weight: 800; }

.cm-faq { display: grid; gap: 10px; max-width: 860px; }
.cm-faq details { padding: 4px 20px; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-white); }
.cm-faq summary { padding: 14px 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.cm-faq p { margin: 0 0 16px; color: var(--cm-text2); font-size: 14px; line-height: 1.7; }

.cm-newsletter { margin-top: 20px; background: var(--cm-purple); color: #fff; }
.cm-newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 38px 0; }
.cm-newsletter h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.6px; }
.cm-newsletter p { margin: 0; opacity: .9; }
.cm-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-newsletter-form input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #17171b; font-size: 14px; }
.cm-newsletter-form .cm-btn { background: var(--cm-yellow); color: #17171b; }
.cm-newsletter-msg { flex-basis: 100%; min-height: 1.2em; font-size: 13px; }
.cm-newsletter-msg.is-error { color: #ffd7d7; }
.cm-newsletter + .cm-footer { margin-top: 0; }

.cm-js .cm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.cm-js .cm-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.cm-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cm-social { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff !important; font-size: 14px; font-weight: 800; }
.cm-social:hover { border-color: var(--cm-yellow); color: var(--cm-yellow) !important; }
.cm-footer-menu { margin: 0; padding: 0; list-style: none; }

/* ---------- WhatsApp, deseos y comparador ---------- */
.cm-wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .18s;
}
.cm-wa-float:hover { transform: scale(1.08); color: #fff; }
body.cm-has-sticky .cm-wa-float { bottom: 88px; }
.cm-empty { padding: 30px; border: 1px dashed var(--cm-line); border-radius: var(--cm-radius); color: var(--cm-muted); text-align: center; }
.cm-compare-scroll { overflow-x: auto; }
.cm-compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.cm-compare-table th, .cm-compare-table td { padding: 14px; border: 1px solid var(--cm-line); text-align: left; vertical-align: top; }
.cm-compare-table thead th { text-align: center; }
.cm-compare-table thead img { display: block; width: 120px; height: 120px; margin: 8px auto; object-fit: contain; }
.cm-compare-table tbody th { width: 150px; background: var(--cm-soft); font-weight: 700; }
.cm-compare-remove { display: block; margin: 0 0 4px auto; padding: 0; border: 0; background: transparent; color: var(--cm-muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

/* ---------- Dispositivos medianos y móviles ---------- */
.cm-logo-text { white-space: nowrap; }
@media (max-width: 1080px) {
  .cm-header-main { grid-template-columns: minmax(160px, 210px) minmax(180px, 1fr) auto; }
}
@media (max-width: 900px) {
  .cm-burger { display: grid; }
  .cm-nav { display: none; }
  .cm-header-main { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "burger logo actions" "search search search"; gap: 8px 12px; min-height: 0; padding: 10px 0 12px; }
  .cm-hide-sm { display: none; }
  .cm-search-cat { display: none; }
  .cm-shop-layout.has-sidebar { display: block; }
  .cm-filter-toggle { display: inline-flex; }
  .cm-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; width: min(340px, 90vw); overflow-y: auto; padding: 0 20px 28px; background: var(--cm-white);
    box-shadow: var(--cm-shadow-hover); visibility: hidden; transform: translateX(-100%); transition: transform .25s ease, visibility .25s;
  }
  .cm-sidebar.is-open { visibility: visible; transform: none; }
  .cm-sidebar-head { display: flex; position: sticky; top: 0; margin: 0 -20px 18px; background: var(--cm-white); }
  .cm-qv { grid-template-columns: 1fr; }
  .cm-newsletter-inner { grid-template-columns: 1fr; }
  .cm-hero.has-image.is-active { grid-template-columns: 1fr; }
  .cm-hero-media { order: -1; }
  .cm-hero-media img { max-height: 200px; }
}
@media (max-width: 780px) {
  .cm-hero-nav { position: static; justify-content: center; margin-top: 12px; }
  .cm-modal-body { padding: 22px 18px; }
  .cm-wa-float { width: 50px; height: 50px; }
}
@media (max-width: 480px) {
  .cm-logo-text { font-size: 19px; }
  .cm-action-icon { width: 38px; }
  .cm-toast { bottom: 84px; }
}

/* ---------- Modo oscuro ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --cm-white: #121217;
  --cm-ink: #f3f3f6;
  --cm-muted: #a3a4ae;
  --cm-line: #2c2c37;
  --cm-soft: #1b1b23;
  --cm-yellow-soft: #2a2711;
  --cm-text2: #c5c6cf;
  --cm-purple: #8b78f0;
  --cm-purple-hover: #a496f3;
  --cm-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  --cm-shadow-hover: 0 14px 34px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] body { background: var(--cm-white); color: var(--cm-ink); }
/* Texto oscuro sobre el morado claro para mantener el contraste */
html[data-theme="dark"] .cm-btn, html[data-theme="dark"] .button,
html[data-theme="dark"] .woocommerce a.button, html[data-theme="dark"] .woocommerce button.button,
html[data-theme="dark"] .woocommerce input.button, html[data-theme="dark"] .woocommerce a.button.alt,
html[data-theme="dark"] .woocommerce button.button.alt, html[data-theme="dark"] .cm-mega-btn,
html[data-theme="dark"] .cm-announce, html[data-theme="dark"] .cm-newsletter,
html[data-theme="dark"] .cm-card-btn.is-active { color: #121217; }
html[data-theme="dark"] .cm-announce a, html[data-theme="dark"] .cm-newsletter p { color: #121217; }
html[data-theme="dark"] .cm-btn:hover, html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .woocommerce a.button:hover, html[data-theme="dark"] .woocommerce button.button:hover { color: #121217; }
html[data-theme="dark"] .cm-newsletter-form .cm-btn { background: #121217; color: #fff; }
/* Fondos amarillos: el texto siempre oscuro */
html[data-theme="dark"] .cm-logo-mark, html[data-theme="dark"] .cm-cart-count,
html[data-theme="dark"] .woocommerce span.onsale,
html[data-theme="dark"] .woocommerce nav.woocommerce-pagination ul li span.current,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active,
html[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #17171b; }
html[data-theme="dark"] .cm-low-stock { background: #3a1a1d; color: #ffb4ba; }
html[data-theme="dark"] .cm-search input[type="search"],
html[data-theme="dark"] .woocommerce input.input-text, html[data-theme="dark"] .woocommerce textarea,
html[data-theme="dark"] .woocommerce select { color: var(--cm-ink); }
html[data-theme="dark"] .cm-search-cat option { background: var(--cm-white); color: var(--cm-ink); }
html[data-theme="dark"] .cm-freeship-bar { background: rgba(255, 255, 255, .12); }

@media (prefers-reduced-motion: reduce) {
  .cm-drawer, .cm-overlay, .cm-toast, .cm-card-actions, .cm-js .cm-reveal { transition: none; }
  .cm-hero.is-active { animation: none; }
  .cm-js .cm-reveal { opacity: 1; transform: none; }
}
