/* ccmg-hojas-juntas: ccmg-brand-cards-slider.css */
/**
 * CCM Brand Cards Slider — Estilos frontend
 *
 * Diseño de referencia: Figma node 925:5679 (CCM web design 2026)
 * Especificaciones Figma: tarjeta 332×210px | border-radius:12px | padding:24/16/24/16
 *
 * Patrón de scroll: igual que ccmg-nav-slider.
 *   - .ccmg-bcs          → overflow:hidden (clip del peek)
 *   - .ccmg-bcs__track   → flex + overflow-x:scroll (scroll container)
 *   - .ccmg-bcs__track::after → spacer para no chocar el último item con el extremo
 *   - .ccmg-bcs__card    → ancho fraccionado (visible = 4.15) para peek intencional
 */

/* =============================================================
   VARIABLES
   ============================================================= */

.ccmg-bcs {
    --ccmg-bcs-gap:       16px;   /* sobreescrito inline por el widget */
    --ccmg-bcs-end-space: 48px;   /* espacio trailing después del último card */
    --ccmg-bcs-visible:   4.15;   /* cards visibles + peek en desktop */
}

/* =============================================================
   TÍTULO
   ============================================================= */

.ccmg-bcs__title {
    all:         unset;
    display:     block;
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size:   clamp(20px, 1.45vw, 24px);
    font-weight: 500;
    color:       rgba(0, 0, 0, 0.92);
    line-height: 1.2;
    margin-bottom: 12px;
}

/* =============================================================
   WRAPPER PRINCIPAL — clip del peek
   ============================================================= */

.ccmg-bcs {
    position: relative;
    width: 100%;
    overflow: hidden;              /* clip del card parcial (peek) */
}

/* =============================================================
   TRACK WRAPPER — contexto de posición para los botones nav
   ============================================================= */

.ccmg-bcs__track-wrapper {
    position: relative;
    width: 100%;
}

/* =============================================================
   TRACK — scroll container + flex row
   ============================================================= */

.ccmg-bcs__track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--ccmg-bcs-gap);
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Scrollbar oculta — navegación via botones o drag */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ccmg-bcs__track::-webkit-scrollbar {
    display: none;
}

/* Spacer trailing: evita que el último card choque con el borde del contenedor */
.ccmg-bcs__track::after {
    content: '';
    flex: 0 0 var(--ccmg-bcs-end-space);
}

.ccmg-bcs__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Desactivar snap durante drag para fluidez */
}

/* =============================================================
   TARJETA — ancho fraccionado para peek intencional
   ============================================================= */

.ccmg-bcs__card {
    /*
     * Formula: (100% - (N_visible - 1) × gap) / N_visible
     * Con N_visible=4.15 en desktop: el 0.15 fraccionario es el peek.
     * 100% aquí = ancho del track (= ancho del contenedor del widget).
     */
    flex-shrink: 0;
    width: calc(
        (100% - (var(--ccmg-bcs-visible) - 1) * var(--ccmg-bcs-gap))
        / var(--ccmg-bcs-visible)
    );
    max-width: 332px;              /* cap al spec Figma en contenedores muy anchos */
    aspect-ratio: 16 / 9;         /* altura responsive, proporcional al ancho */
    min-height: 90px;
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background-color: #000;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.ccmg-bcs__card:hover {
    text-decoration: none;
}

/*
 * Foto de la tarjeta (S5-03). Antes era un background-image en línea en .ccmg-bcs__card;
 * ahora es un <img> con el mismo encuadre que aquel fondo (cover, centrado, sobre toda la
 * caja con su relleno). Su URL la pone el observador en línea del renderer cuando el carril
 * se acerca a la pantalla, con o sin Elementor; sin JavaScript, la <img> del <noscript>
 * (misma clase). Mientras no tiene src no pinta nada: se ve el negro de la tarjeta, como
 * con el fondo diferido de Elementor. Va debajo del degradado y del contenido (orden del DOM) y
 * no recibe eventos: el clic y el arrastre siguen siendo de la tarjeta.
 * Dos clases para ganar a «.elementor img» (height:auto; max-width:100%) y al reset de Hello.
 */
.ccmg-bcs__card .ccmg-bcs__card-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Sin JavaScript el <noscript> de la foto es una caja de bloque y, dentro de la tarjeta (flex),
   sería un elemento flex más (con su «gap»): que no genere caja; su <img> va en posición absoluta.
   Solo sin JavaScript: con él, el <noscript> tiene que seguir oculto (display:none del navegador). */
@media (scripting: none) {
    .ccmg-bcs__card > noscript {
        display: contents;
    }
}

/* Overlay gradiente para legibilidad del texto sobre imagen */
.ccmg-bcs__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        rgba(0, 0, 0, 0.00) 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

/* Contenido sobre el overlay */
.ccmg-bcs__card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

/* Columna izquierda: nombre + CTA */
.ccmg-bcs__card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}

.ccmg-bcs__card-name {
    display: block;
    /* Era `Inter, sans-serif`, una fuente que este sitio no carga: los nombres
       de marca acababan en la sans-serif del sistema. */
    font-family: "founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 11.5px;
    line-height: 14.3px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ccmg-bcs__card-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.ccmg-bcs__card-cta-label {
    /* Faltaba la familia registrada: pedía 'Founders Grotesk' y 'Apercu', que
       no existen en este sitio, así que caía a sans-serif. Eran los 31
       elementos que salían con otra fuente en la medición. */
    font-family: "founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: #fff;
    white-space: nowrap;
}

.ccmg-bcs__card-cta-arrow {
    display: flex;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

/* Columna derecha: logo YITH */
.ccmg-bcs__card-logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    max-width: 90px;
}

.ccmg-bcs__card-logo-img {
    display: block;
    width: 90px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

/* =============================================================
   NAVEGACIÓN — idéntico al patrón ccmg-nav-slider
   ============================================================= */

/* Botones absolutamente posicionados sobre el track wrapper,
   centrados verticalmente. Ocultos por defecto, aparecen en hover
   del contenedor solo cuando JS añade .is-visible */
.ccmg-bcs__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    color: #000;
    line-height: 1;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ccmg-bcs__nav-btn--prev { left: 8px; }
.ccmg-bcs__nav-btn--next { right: 8px; }

/* Aparece en hover del contenedor SOLO si JS añade .is-visible */
.ccmg-bcs:hover .ccmg-bcs__nav-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ccmg-bcs__nav-btn.is-visible:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.10);
    transform: translateY(calc(-50% - 1px));
}

.ccmg-bcs__nav-btn:focus-visible {
    outline: 2px solid #121212;
    outline-offset: 2px;
    opacity: 1;
    pointer-events: auto;
}

.ccmg-bcs__nav-btn svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .ccmg-bcs__nav-btn {
        transition: none;
    }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet */
@media (max-width: 1023px) {
    .ccmg-bcs {
        --ccmg-bcs-visible: 3.15;
    }

    .ccmg-bcs__title {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ccmg-bcs {
        --ccmg-bcs-visible: 2.1;
        --ccmg-bcs-end-space: 24px;
    }

    .ccmg-bcs__card {
        max-width: none; /* En mobile sin cap — el ancho fraccionado ya es correcto */
        padding: 8px;
    }

    .ccmg-bcs__track {
        gap: 8px !important; /* gap fijo en mobile, ignora el valor del widget */
    }

    /* Layout mobile: columna — logo arriba, CTA abajo */
    .ccmg-bcs__card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Logo pasa a la primera posición (arriba) */
    .ccmg-bcs__card-logo {
        order: -1;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 60px;
    }

    .ccmg-bcs__card-logo-img {
        width: 60px;
        max-height: 60px;
    }

    /* El bloque de texto ocupa solo lo que necesita */
    .ccmg-bcs__card-text {
        flex: none;
        width: 100%;
    }

    /* Nombre oculto en mobile cuando hay logo — solo logo + CTA */
    .ccmg-bcs__card-name {
        display: none;
    }

    /* Sin logo: mostrar el nombre como identificador de la marca */
    .ccmg-bcs__card--no-logo .ccmg-bcs__card-name {
        display: block;
    }

    .ccmg-bcs__card-cta-label {
        font-size: 12px;
        line-height: 12px;
    }

    .ccmg-bcs__title {
        font-size: 16px;
    }
}
/* ccmg-hojas-juntas: ccmg-reloj.css */
/* ccmg-reloj.css — sello «Selección de hoy» (lo pone ccmg-reloj.js).
 * Prefijo ccmr- a propósito: convive con el «contador de ofertas», que irá
 * en las mismas tarjetas (MAPA del reloj, trampa 9). Nada de clases genéricas.
 *
 * Abajo a la izquierda de .ccmg-card__media (ya es position:relative).
 * z-index 2: por encima de la foto y del overlay (1), por debajo del botón
 * del carrito (3), que al pasar el ratón se estira hacia la izquierda.
 */
.ccmr-reloj {
	position: absolute;
	left: 6px;
	bottom: 6px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px 6px 3px 4px;
	border-radius: 6px;
	background: var(--ccmg-card-accent, #e60000);
	color: #fff;
	font-family: var(--ccmg-card-font, inherit);
	font-weight: 600;
	font-size: 11px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	pointer-events: none;
}
.ccmr-reloj svg {
	width: 11px;
	height: 11px;
	flex: none;
	margin-right: 2px;
}
.ccmr-reloj--grande {
	left: 10px;
	bottom: 10px;
	gap: 3px;
	padding: 5px 7px 5px 6px;
	border-radius: 8px;
	font-size: 13px;
}
.ccmr-reloj--grande .ccmr-u {
	background: #fff;
	color: #191818;
	border-radius: 3px;
	padding: 3px 4px;
}
.ccmr-reloj--grande svg {
	width: 15px;
	height: 15px;
}

/* ---- Alineación vertical de cifras y «:» con el rayo (10-oct) ----
 * Con «Founder grotesk CCM» (ascent 7 / descent 4 a 11 px; las cifras van de
 * +7,06 a −0,13 sobre la línea base) el centro de las cifras quedaba 1,96 px
 * por ENCIMA del rayo en el compacto y 2,6 px en el grande (también de su
 * cajita). Solo se toca la vertical: tamaños, colores y posición, iguales.
 *
 * Rama nativa (Safari 18.2+, Chrome 133+): text-box recorta la caja de cada
 * trozo a la tinta que importa —de la altura de mayúsculas a la línea base
 * para las cifras, de la x a la línea base para los «:»— y el flex
 * (align-items: center) los centra con el rayo. No depende de las métricas
 * de la fuente. En el grande la cajita conserva su alto (1em + 6 px, el de
 * antes) y align-content centra la cifra dentro.
 * La vigila tests/reloj/alineacion.mjs (≤ 0,5 px, las dos ramas).
 */
.ccmr-u {
	text-box: trim-both cap alphabetic;
}
.ccmr-sep {
	text-box: trim-both ex alphabetic;
}
.ccmr-reloj--grande .ccmr-u {
	box-sizing: border-box;
	height: calc(1em + 6px);
	align-content: center;
}
/* Respaldo (navegadores sin text-box): desplazamientos medidos para Founder
 * en Chrome, por talla. Con otra fuente (si Founder no carga) se desvía: ver
 * el informe. En el grande se mueve la cifra con el relleno y no con top,
 * para que la cajita blanca no se mueva. */
@supports not (text-box: trim-both cap alphabetic) {
	.ccmr-u,
	.ccmr-sep {
		position: relative;
	}
	.ccmr-u {
		top: 0.1786em;
	}
	.ccmr-sep {
		top: 0.08em;
	}
	.ccmr-reloj--grande .ccmr-u {
		top: 0;
		padding-top: calc(3px + 0.2em);
		padding-bottom: calc(3px - 0.2em);
	}
	.ccmr-reloj--grande .ccmr-sep {
		top: 0.1em;
	}
}

/* ---- Escritorio: el sello entero a 0,85 (dueño, 10-oct) ----
 * «En escritorio vamos hacerla un 15 % más pequeño todo». Escritorio = por
 * ANCHO DE PANTALLA, con el corte de Elementor del sitio (kit 7, valores por
 * defecto: tablet hasta 1024 px, escritorio desde 1025 px; leído con
 * \Elementor\Plugin::$instance->breakpoints en dev y en producción).
 * Por debajo del corte no cambia nada: las reglas de arriba quedan intactas.
 * Todo ×0,85 con valores explícitos (no `zoom`, para no depender de cómo cada
 * motor escala left/bottom con zoom): letra, rayo, cajitas, rellenos, gap,
 * esquinas y el desplazamiento desde la esquina de la foto.
 * Lo vigila tests/reloj/alineacion.mjs (0,85 en escritorio; idéntico a 375 y
 * 1024 px; alineación ≤ 0,5 px a la talla nueva, con text-box y sin él).
 */
@media (min-width: 1025px) {
	.ccmr-reloj {
		left: 5.1px;
		bottom: 5.1px;
		gap: 1.7px;
		padding: 2.55px 5.1px 2.55px 3.4px;
		border-radius: 5.1px;
		font-size: 9.35px;
	}
	.ccmr-reloj svg {
		width: 9.35px;
		height: 9.35px;
		margin-right: 1.7px;
	}
	.ccmr-reloj--grande {
		left: 8.5px;
		bottom: 8.5px;
		gap: 2.55px;
		padding: 4.25px 5.95px 4.25px 5.1px;
		border-radius: 6.8px;
		font-size: 11.05px;
	}
	.ccmr-reloj--grande .ccmr-u {
		border-radius: 2.55px;
		padding: 2.55px 3.4px;
		height: calc(1em + 5.1px);
	}
	.ccmr-reloj--grande svg {
		width: 12.75px;
		height: 12.75px;
	}
}
/* Respaldo en escritorio: la regla de arriba devuelve a la cajita un relleno
 * simétrico, así que se repite aquí el desplazamiento de la cifra, medido para
 * Founder a 11,05 px (2,0 px = 0,181 em). Compacto y «:» ya cuadran con sus em. */
@media (min-width: 1025px) {
	@supports not (text-box: trim-both cap alphabetic) {
		.ccmr-reloj--grande .ccmr-u {
			padding-top: calc(2.55px + 0.181em);
			padding-bottom: calc(2.55px - 0.181em);
		}
	}
}
/* ccmg-hojas-juntas: ccmg-product-card.css */
/* ============================================================
   CCM Product Card  — .ccmg-card
   Diseño: CCM web design 2026 · Figma node 669-5286
   ============================================================ */

/* ---- Variables ---- */

.ccmg-card {
    --ccmg-card-radius:       24px;
    --ccmg-card-img-radius:   16px;
    --ccmg-card-bg:           #ffffff;
    --ccmg-card-accent:       #e60000;
    --ccmg-card-accent-hot:   #ff3b00;     /* badge "MÁS VENDIDOS" */
    --ccmg-card-installments: #00a650;     /* renglón de cuotas (verde ML) */
    --ccmg-card-disc-bg:      var(--ccmg-card-accent);   /* badge % OFF (rojo CCM) */
    --ccmg-card-sold-out-bg:  #191919;
    --ccmg-card-border:       rgba(25, 24, 24, 0.3);
    --ccmg-card-border-w:     1.5px;
    --ccmg-card-font:         "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* ATC flotante */
    --ccmg-card-atc-bg:       rgba(25, 24, 24, 0.9);
    --ccmg-card-atc-size:     32px;
    --ccmg-card-atc-icon-size: 13px;
    --ccmg-card-atc-expand-max-width: 220px;
    --ccmg-card-atc-expand-gap: 8px;
    --ccmg-card-atc-expand-padding: 8px 12px 8px 8px;
    --ccmg-card-atc-label-size: 14px;
    --ccmg-card-atc-label-line-height: 14px;
    --ccmg-card-atc-label-max-width: 200px;
    --ccmg-card-atc-pulse-shrink: 0.88;
    --ccmg-card-atc-pulse-grow: 1.08;

    /* Colores de texto */
    --ccmg-card-title-color:  #000000;
    --ccmg-card-price-color:  #191919;
    --ccmg-card-del-color:    #707070;
    --ccmg-card-ship-bg:      rgb(225, 241, 227);
    --ccmg-card-ship-color:   rgb(0, 148, 19);

    display:          flex;
    flex-direction:   column;
    gap:              16px;
    background:       var(--ccmg-card-bg);
    font-family:      var(--ccmg-card-font);
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Container queries: responde al ancho de la propia tarjeta */
    container-type:   inline-size;
    container-name:   card;
}

/* ============================================================
   Zona de imagen (.ccmg-card__media)
   Contiene: imagen, badge de categoría, botón ATC flotante
   ============================================================ */

.ccmg-card__media {
    position:      relative;
    border-radius: var(--ccmg-card-radius);
    overflow:      hidden;
    aspect-ratio:  var(--ccmg-card-nav-anchor-aspect-ratio);
    background:    #ffffff;
}

/* ---- Link de imagen (aria-hidden, no tab) ---- */

.ccmg-card__img-link {
    display:         block;
    width:           100%;
    height:          100%;
    text-decoration: none;
    outline:         none;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Wrapper interno con padding 10px (Figma) ---- */
/* El radio 16px aplica al inner frame del diseño         */

.ccmg-card__image-wrap {
    position:      relative;
    width:         100%;
    height:        100%;
    padding:       10px;
    box-sizing:    border-box;
    overflow:      hidden;
    border-radius: var(--ccmg-card-img-radius);
}

/*
 * Geometría de las dos imágenes: !important acotado a width/height/object-fit.
 *
 * Por qué. La tarjeta se pinta dentro de `ul.products li.product` en tres de
 * sus cuatro contextos (categoría de WooCommerce, rejilla propia y la lista de
 * favoritos), y allí llega `woocommerce.css` con
 *
 *     .woocommerce ul.products li.product a img { width: 100%; height: auto }
 *
 * cuya especificidad está muy por encima de la de estas dos reglas (0,1,0). Sin
 * refuerzo gana WooCommerce: el `calc(100% - 20px)` del hover no se aplica, la
 * segunda imagen se pinta con el ancho del padding box (218,3 px frente a los
 * 198,3 de la principal, medido en producción) y con la altura automática, así
 * que se sale del recuadro.
 *
 * Por qué !important y no más especificidad. Para ganar habría que anclar cada
 * regla a la cadena de ancestros de CADA contexto (carrusel, .ccmg-product-grid,
 * ul.products y ul.products.ccma-favoritos), repetirlas cuatro veces y volver a
 * perder ante cualquier regla del tema con un id. Es el mismo motivo por el que
 * `.ccmg-card__atc` ya usa !important contra los estilos .button de
 * WooCommerce (ver la nota en esa regla, más abajo). Se acota a las TRES
 * propiedades de la caja: opacidad, transición, radio y color siguen siendo
 * sobreescribibles con normalidad.
 */

.ccmg-card__img {
    display:       block;
    /* 100% del área de contenido del envoltorio (está en el flujo, tras el padding) */
    width:         100% !important;
    height:        100% !important;
    object-fit:    contain !important;    /* Figma: scaleMode = FIT */
    border-radius: var(--ccmg-card-img-radius);
    transition:    opacity 0.3s ease;
}

.ccmg-card__img--placeholder {
    opacity: 0.35;
}

/* ---- Imagen hover (segunda imagen de galería) ---- */

/*
 * Misma caja EXACTA que la principal. Al ser absoluta, sus porcentajes se
 * resuelven contra el padding box del envoltorio, así que hay que despegarla
 * los 10px del padding por los cuatro lados y descontarlos dos veces del ancho
 * y del alto. Si cambia el padding de .ccmg-card__image-wrap, estos tres
 * valores cambian con él (el verificador de tests/css lo comprueba).
 * El !important, por lo mismo que arriba.
 */

.ccmg-card__img--hover {
    position:      absolute;
    inset:         10px;          /* respeta el padding del wrapper */
    width:         calc(100% - 20px) !important;
    height:        calc(100% - 20px) !important;
    object-fit:    contain !important;
    border-radius: var(--ccmg-card-img-radius);
    opacity:       0;
    transition:    opacity 0.35s ease;
}

/* ---- Overlay permanente (Figma: Background + Overlay layers) ---- */

.ccmg-card__overlay {
    position:       absolute;
    inset:          0;
    background:     rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index:        1;
}

/* ---- Badge de categoría en imagen ---- */
/* Badge default: top=9px left=6px · pill bg=#191919 · 12px/500/white lh=18 */

.ccmg-card__cat-badge {
    position:        absolute;
    top:             9px;
    left:            6px;
    z-index:         2;
    display:         inline-flex;
    align-items:     center;
    padding:         3px 12px 0;
    border-radius:   100px;
    background:      var(--ccmg-card-sold-out-bg);
    color:           #ffffff;
    font-family:     var(--ccmg-card-font);
    font-size:       12px;
    font-weight:     500;
    line-height:     18px;
    white-space:     nowrap;
    pointer-events:  none;
    text-transform:  uppercase;
    letter-spacing:  0.02em;
}

.ccmg-card__cat-badge--sold-out {
    background: var(--ccmg-card-accent-hot);
}

/* ============================================================
   Botón ATC flotante
   Figma: bottom=12px right=10px · 32×32 circle · bg=rgba(25,24,24,0.9)
   Hover: expande a pill mostrando "Añadir al carrito" (14px/500)
   ============================================================ */

.ccmg-card__atc {
    all:             unset;
    position:        absolute !important;  /* WooCommerce .button aplica position:relative */
    bottom:          12px;
    right:           10px;
    z-index:         3;

    display:         inline-flex !important;
    align-items:     center;
    justify-content: center;
    gap:             0;

    height:          var(--ccmg-card-atc-size) !important;
    min-width:       var(--ccmg-card-atc-size) !important;  /* fuerza ancho = alto → círculo */
    max-width:       var(--ccmg-card-atc-size);
    padding:         8px !important;

    /* !important para ganar a los estilos .button de WooCommerce/tema */
    border-radius:   100px !important;
    background:      var(--ccmg-card-atc-bg) !important;
    color:           #ffffff !important;
    cursor:          pointer !important;

    overflow:        hidden !important;  /* WooCommerce .button fuerza overflow:visible */
    white-space:     nowrap;
    box-sizing:      border-box !important;
    line-height:     1;
    text-decoration: none;

    transition:
        max-width  0.38s cubic-bezier(0.4, 0, 0.2, 1),
        gap        0.38s cubic-bezier(0.4, 0, 0.2, 1),
        padding    0.38s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.15s ease;

    -webkit-tap-highlight-color: transparent;
}

/*
 * Expansión hover solo en dispositivos con puntero fino (ratón/trackpad).
 * En touch, :hover queda "pegado" al primer tap y provoca el estado
 * expandido de forma permanente hasta el siguiente tap.
 * (hover:hover) + (pointer:fine) = ratón real, nunca pantalla táctil.
 */
@media (hover: hover) and (pointer: fine) {
    /*
     * El intercambio solo cuando la segunda imagen ESTÁ descargada.
     *
     * La imagen de hover es `loading="lazy"`: hasta que el navegador la trae no
     * hay nada que enseñar, y desvanecer la principal en ese momento deja ver
     * el fondo blanco del envoltorio (el «hover vacío» del reporte). La clase
     * `--hover-listo` la pone ccmg-card-atc.js cuando la imagen ya está
     * `complete` con píxeles. Sin JS, o con el JS caído, la clase no aparece
     * nunca: no hay efecto de hover, pero tampoco hueco en blanco.
     */
    .ccmg-card__image-wrap--has-hover.ccmg-card__image-wrap--hover-listo:hover .ccmg-card__img--primary {
        opacity: 0;
    }

    .ccmg-card__image-wrap--has-hover.ccmg-card__image-wrap--hover-listo:hover .ccmg-card__img--hover {
        opacity: 1;
    }

    /* Card hover → expande el botón */
    .ccmg-card:hover .ccmg-card__atc:not([disabled]):not([aria-disabled="true"]) {
        max-width: var(--ccmg-card-atc-expand-max-width);
        gap:       var(--ccmg-card-atc-expand-gap);
        padding:   var(--ccmg-card-atc-expand-padding);
    }

    /* Hover directo sobre el botón */
    .ccmg-card__atc:hover:not([disabled]) {
        background: rgba(25, 24, 24, 1);
    }
}

.ccmg-card__atc:focus-visible {
    outline:        2px solid #ffffff;
    outline-offset: 2px;
}

.ccmg-card__atc[disabled],
.ccmg-card__atc[aria-disabled="true"] {
    opacity: 0.45;
    cursor:  not-allowed;
}

/* Estados gestionados por WooCommerce + estado local explícito */
.ccmg-card__atc.loading:not([disabled]),
.ccmg-card__atc.added:not([disabled]),
.ccmg-card__atc[data-ccmg-atc-state="pending"]:not([disabled]),
.ccmg-card__atc[data-ccmg-atc-state="success"]:not([disabled]),
.ccmg-card__atc[data-ccmg-atc-state="error"]:not([disabled]) {
    max-width: var(--ccmg-card-atc-expand-max-width);
    gap:       var(--ccmg-card-atc-expand-gap);
    padding:   var(--ccmg-card-atc-expand-padding);
}

.ccmg-card__atc.loading .ccmg-card__atc-label,
.ccmg-card__atc.added .ccmg-card__atc-label,
.ccmg-card__atc[data-ccmg-atc-state="pending"] .ccmg-card__atc-label,
.ccmg-card__atc[data-ccmg-atc-state="success"] .ccmg-card__atc-label,
.ccmg-card__atc[data-ccmg-atc-state="error"] .ccmg-card__atc-label {
    max-width: var(--ccmg-card-atc-label-max-width);
    opacity:   1;
}

.ccmg-card__atc[data-ccmg-atc-state="pending"] {
    background: rgba(25, 24, 24, 1) !important;
    opacity:    1;
    cursor:     progress !important;
}

.ccmg-card__atc[data-ccmg-atc-state="pending"][aria-disabled="true"],
.ccmg-card__atc[data-ccmg-atc-state="success"][aria-disabled="true"] {
    opacity: 1;
}

.ccmg-card__atc[data-ccmg-atc-state="success"] {
    animation:  ccmg-atc-pulse 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    background: rgba(25, 24, 24, 1) !important;
}

.ccmg-card__atc[data-ccmg-atc-state="error"] {
    background: rgba(164, 24, 24, 0.96) !important;
    opacity:    1;
}

/* Ícono del carrito */
.ccmg-card__atc-icon {
    position:        relative;
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           var(--ccmg-card-atc-icon-size);
    height:          var(--ccmg-card-atc-icon-size);
    flex-shrink:     0;
}

.ccmg-card__atc-icon svg {
    display: block;
    width:   var(--ccmg-card-atc-icon-size);
    height:  var(--ccmg-card-atc-icon-size);
}

/* Íconos intercambiables: carrito ↔ check */
.ccmg-card__atc-icon-cart,
.ccmg-card__atc-icon-check {
    position:   absolute;
    inset:      0;
    display:    flex;
    align-items:     center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.ccmg-card__atc-icon-check { opacity: 0; }

/* Pending / error mantienen el carrito visible */
.ccmg-card__atc[data-ccmg-atc-state="pending"] .ccmg-card__atc-icon-cart,
.ccmg-card__atc[data-ccmg-atc-state="error"] .ccmg-card__atc-icon-cart {
    opacity: 1;
}

.ccmg-card__atc[data-ccmg-atc-state="pending"] .ccmg-card__atc-icon-check,
.ccmg-card__atc[data-ccmg-atc-state="error"] .ccmg-card__atc-icon-check {
    opacity: 0;
}

/* Estado added (WooCommerce confirma) */
.ccmg-card__atc[data-ccmg-atc-state="success"] .ccmg-card__atc-icon-cart,
.ccmg-card__atc.added .ccmg-card__atc-icon-cart { opacity: 0; }

.ccmg-card__atc[data-ccmg-atc-state="success"] .ccmg-card__atc-icon-check,
.ccmg-card__atc.added .ccmg-card__atc-icon-check { opacity: 1; }

/* ============================================================
   Animación de éxito
   Se activa cuando WooCommerce confirma el add-to-cart.
   ============================================================ */

@keyframes ccmg-atc-pulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(var(--ccmg-card-atc-pulse-shrink)); }
    65%  { transform: scale(var(--ccmg-card-atc-pulse-grow)); }
    100% { transform: scale(1); }
}

.ccmg-card__media > .added_to_cart,
.ccmg-card__media > .added_to_cart.wc-forward {
    display: none !important;
}

/* Texto del botón */
.ccmg-card__atc-label {
    font-family:  var(--ccmg-card-font);
    font-size:    var(--ccmg-card-atc-label-size);
    font-weight:  500;
    line-height:  var(--ccmg-card-atc-label-line-height);
    color:        #ffffff;
    white-space:  nowrap;
    overflow:     hidden;
    max-width:    0;
    opacity:      0;
    transition:
        max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity   0.2s  ease 0.1s;
}

@media (hover: hover) and (pointer: fine) {
    .ccmg-card:hover .ccmg-card__atc:not([disabled]) .ccmg-card__atc-label {
        max-width: var(--ccmg-card-atc-label-max-width);
        opacity:   1;
    }
}

/* Variante producto variable (enlace) */
.ccmg-card__atc--variable {
    background: rgba(25, 24, 24, 0.9);
    text-decoration: none;
}

/* ============================================================
   Cuerpo (.ccmg-card__body-link + .ccmg-card__body)
   ============================================================ */

.ccmg-card__body-link {
    display:         block;
    min-width:       0;        /* evita overflow horizontal en flex */
    text-decoration: none;
    color:           inherit;
    outline:         none;
    -webkit-tap-highlight-color: transparent;
}

.ccmg-card__body-link:focus-visible .ccmg-card__body {
    outline:        2px solid var(--ccmg-card-accent);
    outline-offset: 4px;
    border-radius:  4px;
}

.ccmg-card__body {
    display:        flex;
    flex-direction: column;
    gap:            8px;
    padding:        0 6px;
    min-width:      0;         /* evita que el contenido desborde el slide */
    overflow:       hidden;    /* recorta badges/precios que excedan el ancho */
}

/* ---- Bloque info: título + precio + envío ---- */

.ccmg-card__info {
    display:        flex;
    flex-direction: column;
    gap:            0;
}

/* ---- Título ---- */
/* Figma: 14px / 500 / lh=14 / #000 */

.ccmg-card__title {
    all:                unset;
    display:            -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow:           hidden;
    font-family:        var(--ccmg-card-font);
    font-size:          14px;
    font-weight:        500;
    color:              var(--ccmg-card-title-color);
    line-height:        14px;
    max-height:         28px;
}

/* ---- Precio ---- */
/* Figma: current=18px/500/lh=18/#191919 | del=14px/400/lh=12/#707070 */
/* Orden: precio tachado arriba, luego (precio actual + badge % OFF)     */

.ccmg-card__price {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            0;
    padding-top:    4px;
}

.ccmg-card__price-row {
    display:     flex;
    align-items: center;
    gap:         6px;
    flex-wrap:   wrap;
}

.ccmg-card__price-current {
    all:         unset;
    font-family: var(--ccmg-card-font);
    font-size:   18px;
    font-weight: 500;
    line-height: 18px;
    color:       var(--ccmg-card-price-color);
}

.ccmg-card__price-regular {
    all:                   unset;
    font-family:           var(--ccmg-card-font);
    font-size:             14px;
    font-weight:           400;
    line-height:           12px;
    color:                 var(--ccmg-card-del-color);
    text-decoration:       line-through;
    text-decoration-thickness: 1px;
}

/* ---- Badge % OFF (Mercado Libre: pill verde relleno) ---- */

/*
 * El texto se veía pegado arriba del recuadro (29-sep). No era un margen: en
 * Founder Grotesk las mayúsculas llenan todo el ascendente (63 % del cuerpo) y
 * debajo queda un 37 % de descendente que «25% OFF» no usa. `text-box` recorta
 * la caja a las mayúsculas y así el relleno, igual arriba y abajo, las centra.
 *
 * `inline-block` y no `inline-flex`: `text-box` solo se aplica a contenedores
 * de bloque, y en una caja flex se ignora sin avisar.
 *
 * El margen inferior sube la etiqueta hasta el centro de las mayúsculas del
 * precio, que queda 0,37 × el cuerpo del precio por encima del centro de su
 * caja. En `em` de la etiqueta acierta en todos los tamaños de la tarjeta
 * (precio/etiqueta ≈ 1,4–1,6); con los 9 px de antes, en móvil la etiqueta
 * quedaba por encima del precio.
 *
 * Lo vigila tests/css/disc-label-css.test.js.
 */
.ccmg-card__disc-label {
    display:       inline-block;
    align-self:    center;
    background:    var(--ccmg-card-disc-bg);
    color:         #ffffff;
    font-family:   var(--ccmg-card-font);
    font-size:     11px;
    font-weight:   500;
    line-height:   1;
    text-box:      trim-both cap alphabetic;
    padding:       3px 4px;
    margin:        0 0 .55em 0;
    border-radius: 3px;
    white-space:   nowrap;
}

/* Sin `text-box` (Safari anterior a 18.2): se rellena arriba el mismo 37 % que
   la fuente deja abajo. Con un borde transparente y no con `padding`, para no
   pelear con los rellenos de los tamaños de más abajo; el fondo rojo se pinta
   también bajo el borde. */
@supports not (text-box: trim-both cap alphabetic) {
    .ccmg-card__disc-label {
        border-top: .37em solid transparent;
    }
}

/* WooCommerce inyecta .woocommerce-Price-amount y bdi */
.ccmg-card__price-current .woocommerce-Price-amount,
.ccmg-card__price-current bdi,
.ccmg-card__price-regular .woocommerce-Price-amount,
.ccmg-card__price-regular bdi {
    color:   inherit;
    font:    inherit;
    display: inline;
}

/* ---- Renglón de cuotas (Mercado Pago) ---- */

.ccmg-card__installments {
    margin:      0;
    color:       var(--ccmg-card-installments);
    font-family: var(--ccmg-card-font);
    font-size:   13px;
    line-height: 15px;
    font-weight: 500;
}

/* wc_price envuelve el monto en <span class="woocommerce-Price-amount amount"> */
.ccmg-card__installments .woocommerce-Price-amount,
.ccmg-card__installments .amount,
.ccmg-card__installments bdi {
    color:       inherit;
    font:        inherit;
    font-weight: 500;
    white-space: nowrap;
    display:     inline;
}

/* ---- Etiqueta de envío ---- */
/* Figma: pill bg=rgb(225,241,227) · r=100 · pad=2px 8px 0 · 12px/500/rgb(0,148,19)/lh=14 */

.ccmg-card__shipping {
    display:         inline-flex;
    align-items:     center;
    align-self:      flex-start;
    padding:         2px 8px 0;
    border-radius:   100px;
    background:      var(--ccmg-card-ship-bg);
    color:           var(--ccmg-card-ship-color);
    font-family:     var(--ccmg-card-font);
    font-size:       12px;
    font-weight:     500;
    line-height:     14px;
    white-space:     nowrap;
    pointer-events:  none;
}

/* ============================================================
   Accesibilidad
   ============================================================ */

.ccmg-card .screen-reader-text {
    position:    absolute !important;
    width:       1px !important;
    height:      1px !important;
    padding:     0 !important;
    margin:      -1px !important;
    overflow:    hidden !important;
    clip:        rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border:      0 !important;
}

/* ============================================================
   Responsive — Container Queries (tendencia 2026)
   + Media Queries como fallback
   ============================================================ */

/* --- Tarjetas muy pequeñas < 130px (4+ columnas en móvil) --- */
@container card (max-width: 130px) {
    .ccmg-card            { gap: 10px; }
    .ccmg-card__body      { gap: 8px; padding: 0 4px; }
    .ccmg-card__info      { gap: 0; }
    .ccmg-card__cat-badge { font-size: 10px; padding: 2px 8px 0; top: 6px; left: 4px; }
    .ccmg-card__title     { font-size: 11px; line-height: 12px; max-height: 24px; }
    .ccmg-card__price-current { font-size: 13px; line-height: 13px; }
    .ccmg-card__price-regular { font-size: 11px; }
    .ccmg-card__installments { font-size: 10px; line-height: 12px; }
    .ccmg-card__disc-label   { font-size: 9px; padding: 2px 4px; }
    .ccmg-card__shipping  { font-size: 10px; padding: 2px 6px 0; }
    .ccmg-card__atc       {
        --ccmg-card-atc-size: 26px;
        --ccmg-card-atc-icon-size: 11px;
        --ccmg-card-atc-expand-max-width: 126px;
        --ccmg-card-atc-expand-gap: 5px;
        --ccmg-card-atc-expand-padding: 5px 8px 5px 5px;
        --ccmg-card-atc-label-size: 10px;
        --ccmg-card-atc-label-line-height: 10px;
        --ccmg-card-atc-label-max-width: 88px;
        --ccmg-card-atc-pulse-shrink: 0.95;
        --ccmg-card-atc-pulse-grow: 1.02;
        bottom: 8px;
        right: 6px;
    }
}

/* --- Tarjetas pequeñas 131–180px (3 columnas tablet/móvil) --- */
@container card (min-width: 131px) and (max-width: 180px) {
    .ccmg-card            { gap: 12px; }
    .ccmg-card__title     { font-size: 12px; line-height: 13px; max-height: 26px; }
    .ccmg-card__price-current { font-size: 15px; line-height: 15px; }
    .ccmg-card__atc       {
        --ccmg-card-atc-size: 28px;
        --ccmg-card-atc-icon-size: 12px;
        --ccmg-card-atc-expand-max-width: 144px;
        --ccmg-card-atc-expand-gap: 6px;
        --ccmg-card-atc-expand-padding: 6px 10px 6px 6px;
        --ccmg-card-atc-label-size: 11px;
        --ccmg-card-atc-label-line-height: 11px;
        --ccmg-card-atc-label-max-width: 104px;
        --ccmg-card-atc-pulse-shrink: 0.94;
        --ccmg-card-atc-pulse-grow: 1.03;
    }
}

/* --- Estándar 180–280px — aplica el diseño base --- */

/* --- Tarjetas grandes > 280px --- */
@container card (min-width: 280px) {
    .ccmg-card__title         { font-size: 14px; }
    .ccmg-card__price-current { font-size: 18px; }
}

@media (max-width: 599px) {
    .ccmg-card {
        --ccmg-card-radius: 16px;
    }
}

/* ---- Viewport mobile ---- */

@media (max-width: 479px) {
    /* Gap reducido entre imagen y body */
    .ccmg-card {
        gap: 8px;
    }

    .ccmg-card__body {
        padding: 0 4px;
        gap:     8px;
    }

    .ccmg-card__title {
        font-size:  13px;
        line-height: 14px;
        max-height:  26px;  /* 2 líneas × 13px */
    }

    .ccmg-card__cat-badge {
        font-size: 11px;
        line-height: 11px;
        padding:   4px 10px 0;
    }

    .ccmg-card__price-current {
        font-size:  clamp(12px, 3.4vw, 16px);
        line-height: clamp(12px, 3.4vw, 16px);
    }

    .ccmg-card__price-regular {
        font-size:  clamp(10px, 2.8vw, 13px);
        line-height: 11px;
    }

    .ccmg-card__installments {
        font-size:  clamp(11px, 2.8vw, 13px);
        line-height: 12px;
    }

    .ccmg-card__disc-label {
        font-size: clamp(9px, 2.4vw, 11px);
        padding:   2px 4px;
    }

    .ccmg-card__info {
        gap: 0;
    }
}

/* ---- Preferencia de movimiento reducido ---- */

@media (prefers-reduced-motion: reduce) {
    .ccmg-card__img,
    .ccmg-card__img--hover,
    .ccmg-card__atc,
    .ccmg-card__atc-label {
        transition: none;
    }
}
/* ccmg-hojas-juntas: ccmg-product-grid.css */
/* ============================================================
   CCM Product Grid
   SSR-first grid para reutilizar la card existente de producto
   ============================================================ */

.ccmg-product-grid {
    --ccmg-grid-gap: 24px;
    --ccmg-grid-columns-desktop: 4;
    --ccmg-grid-columns-tablet: 3;
    --ccmg-grid-columns-mobile: 2;
    --ccmg-grid-measured-height: auto;
    --ccmg-grid-meta-color: rgba(25, 24, 24, 0.72);
    --ccmg-grid-border: rgba(25, 24, 24, 0.12);
    --ccmg-grid-surface-bg: #ffffff;
    --ccmg-grid-surface-muted: rgba(25, 24, 24, 0.04);
    --ccmg-grid-surface-border: rgba(25, 24, 24, 0.08);
    --ccmg-grid-button-bg: #191818;
    --ccmg-grid-button-color: #ffffff;
    --ccmg-grid-button-bg-hover: #000000;
    --ccmg-grid-control-bg: #ffffff;
    --ccmg-grid-control-bg-hover: #f6f6f6;
    --ccmg-grid-control-color: #191818;
    --ccmg-grid-focus-outline: #191818;
    --ccmg-grid-focus-ring: rgba(25, 24, 24, 0.14);
    --ccmg-grid-error-bg: rgba(180, 35, 24, 0.08);
    --ccmg-grid-error-border: rgba(180, 35, 24, 0.18);

    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: var(--ccmg-grid-measured-height, auto);
    color: #191818;
    position: relative;
    isolation: isolate;
}

.ccmg-product-grid,
.ccmg-product-grid * {
    box-sizing: border-box;
}

/*
 * Defensa para Elementor/mobile/iOS:
 * el grid puede crecer después del primer render por auto-fill, load more
 * o reflujo tardío. Permitimos que los wrappers externos acompañen ese alto
 * y dejamos que JS propague una min-height estabilizada.
 */
.elementor-widget-ccmg_product_grid,
.elementor-widget-ccmg_product_grid .elementor-widget-container,
.elementor-widget-ccmg_product_grid .ccmg-product-grid-host {
    display: block;
    height: auto !important;
    min-height: var(--ccmg-grid-measured-height, auto);
    overflow: visible;
}

.elementor-widget-ccmg_product_grid .ccmg-product-grid {
    height: auto;
    min-height: var(--ccmg-grid-measured-height, auto);
}

.ccmg-product-grid__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 18px;
}

.ccmg-product-grid__title {
    margin: 0;
    color: #191818;
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.45vw, 24px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ccmg-product-grid__result-count {
    color: var(--ccmg-grid-meta-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ccmg-product-grid__feedback {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 42px;
    max-width: min(100%, 560px);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--ccmg-grid-surface-border);
    border-radius: 16px;
    background: var(--ccmg-grid-surface-muted);
    color: var(--ccmg-grid-meta-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.ccmg-product-grid__feedback[hidden] {
    display: none !important;
}

.ccmg-product-grid__feedback.is-error {
    color: #b42318;
    background: var(--ccmg-grid-error-bg);
    border-color: var(--ccmg-grid-error-border);
}

.ccmg-product-grid__feedback.is-loading {
    color: var(--ccmg-grid-meta-color);
}

.ccmg-product-grid__body {
    position: relative;
    min-width: 0;
}

.ccmg-product-grid ul.products.ccmg-product-grid__list {
    display: grid !important;
    grid-template-columns: repeat(var(--ccmg-grid-columns-mobile), minmax(0, 1fr));
    gap: var(--ccmg-grid-gap);
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ccmg-product-grid ul.products.ccmg-product-grid__list::before,
.ccmg-product-grid ul.products.ccmg-product-grid__list::after {
    display: none !important;
}

.ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clear: none !important;
    list-style: none !important;
    position: relative;
}

.ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item::before,
.ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item::after {
    display: none !important;
    content: none !important;
}

.ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card {
    height: 100%;
    width: 100%;
    margin: 0;
    color: inherit;
    text-decoration: none;
}

.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__img-link,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__img-link {
    text-decoration: none;
}

.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__img,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__img {
    margin: 0;
    box-shadow: none;
    border: 0;
}

.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link,
.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link:hover,
.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link:focus,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link:hover,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__body-link:focus {
    color: inherit;
    text-decoration: none;
}

.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title {
    all: unset;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: var(--ccmg-card-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ccmg-card-title-color);
    max-height: 28px;
}

.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__price-current,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__price-current,
.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__price-regular,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__price-regular,
.woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__shipping,
.woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item .ccmg-card__shipping {
    text-transform: none;
    letter-spacing: 0;
}

.ccmg-product-grid__empty,
.ccmg-product-grid__end {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 42px;
    max-width: min(100%, 560px);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--ccmg-grid-surface-border);
    border-radius: 16px;
    background: var(--ccmg-grid-surface-muted);
    color: var(--ccmg-grid-meta-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

.ccmg-product-grid__footer .ccmg-product-grid__end {
    justify-content: center;
    text-align: center;
}

.ccmg-product-grid__footer .ccmg-product-grid__end:focus,
.ccmg-product-grid__footer .ccmg-product-grid__end:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ccmg-grid-focus-ring);
}

.ccmg-product-grid__footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ccmg-product-grid__progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ccmg-product-grid__sentinel {
    width: 100%;
    height: 1px;
}

.ccmg-product-grid__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--ccmg-grid-surface-border);
    border-radius: 999px;
    background: var(--ccmg-grid-surface-muted);
    color: var(--ccmg-grid-meta-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.ccmg-product-grid__status[hidden],
.ccmg-product-grid__load-more[hidden] {
    display: none !important;
}

.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button,
.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:hover,
.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:focus,
.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:active,
.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:visited,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:hover,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:focus,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:active,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:visited {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid var(--ccmg-grid-button-bg);
    border-radius: 999px;
    background: var(--ccmg-grid-button-bg);
    color: var(--ccmg-grid-button-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease,
        opacity 0.16s ease;
}

.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:hover,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:hover {
    background: var(--ccmg-grid-button-bg-hover);
    border-color: var(--ccmg-grid-button-bg-hover);
    color: var(--ccmg-grid-button-color);
}

.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button:focus-visible,
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ccmg-grid-focus-ring);
}

.woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button[aria-busy="true"],
.woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button[aria-busy="true"] {
    cursor: wait;
}

.ccmg-product-grid__load-more.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.ccmg-product-grid__footer--auto_load {
    min-height: 1px;
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    float: none;
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination::before,
.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination::after,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination::before,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination::after {
    display: none;
    content: none;
}

.ccmg-product-grid__pagination ul.page-numbers.ccmg-product-grid__page-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
}

.ccmg-product-grid__pagination .ccmg-product-grid__page-item {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination .ccmg-product-grid__page-link,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination .ccmg-product-grid__page-link {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--ccmg-grid-border);
    border-radius: 999px;
    background: var(--ccmg-grid-control-bg);
    color: var(--ccmg-grid-control-color);
    font-family: "Founder grotesk CCM", "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    float: none;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease;
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link {
    cursor: pointer;
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link:hover,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link:hover {
    background: var(--ccmg-grid-control-bg-hover);
    border-color: rgba(25, 24, 24, 0.2);
    color: var(--ccmg-grid-control-color);
}

.woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link:focus-visible,
.woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination a.ccmg-product-grid__page-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ccmg-grid-focus-ring);
}

.ccmg-product-grid__pagination .ccmg-product-grid__page-link--current {
    border-color: #191818;
    background: #191818;
    color: #ffffff;
}

.ccmg-product-grid[aria-busy="true"] .ccmg-product-grid__pagination a.ccmg-product-grid__page-link {
    pointer-events: none;
    opacity: 0.72;
}

.ccmg-product-grid--busy .ccmg-product-grid__footer {
    cursor: progress;
}

.ccmg-product-grid--complete .ccmg-product-grid__end {
    color: #191818;
}

.ccmg-product-grid--error .ccmg-product-grid__feedback {
    color: #b42318;
}

.ccmg-product-grid--empty .ccmg-product-grid__body {
    min-height: 0;
}

@container card (max-width: 130px) {
    .woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title,
    .woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title {
        font-size: 11px;
        line-height: 12px;
        max-height: 24px;
    }
}

@container card (min-width: 131px) and (max-width: 180px) {
    .woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title,
    .woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title {
        font-size: 12px;
        line-height: 13px;
        max-height: 26px;
    }
}

@media (min-width: 768px) {
    .ccmg-product-grid ul.products.ccmg-product-grid__list {
        grid-template-columns: repeat(var(--ccmg-grid-columns-tablet), minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ccmg-product-grid ul.products.ccmg-product-grid__list {
        grid-template-columns: repeat(var(--ccmg-grid-columns-desktop), minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .ccmg-product-grid {
        --ccmg-grid-gap: 18px;
    }

    .ccmg-product-grid__pagination ul.page-numbers.ccmg-product-grid__page-list {
        gap: 6px;
    }

    .woocommerce .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination .ccmg-product-grid__page-link,
    .woocommerce-page .ccmg-product-grid nav.woocommerce-pagination.ccmg-product-grid__pagination .ccmg-product-grid__page-link {
        min-width: 38px;
        min-height: 38px;
        padding: 0 12px;
    }

    .woocommerce .ccmg-product-grid a.ccmg-product-grid__load-more.button,
    .woocommerce-page .ccmg-product-grid a.ccmg-product-grid__load-more.button {
        min-height: 42px;
        padding: 11px 18px;
    }
}

@media (max-width: 479px) {
    .woocommerce .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title,
    .woocommerce-page .ccmg-product-grid ul.products.ccmg-product-grid__list li.product.ccmg-product-grid__item h3.ccmg-card__title {
        font-size: 13px;
        line-height: 14px;
        max-height: 26px;
    }
}

/* Elementor custom CSS in the archive template is styling all inputs as pills.
   Restore Woo Product Filter checkbox/radio styles with higher specificity. */
.elementor-kit-7 .wpfMainWrapper .wpfFilterWrapper input[type="checkbox"],
.elementor-kit-7 .wpfMainWrapper .wpfFilterWrapper input[type="radio"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin-right: 0.3rem !important;
    padding: 0 !important;
    border: 1px solid #e0e0e0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    vertical-align: top !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.elementor-kit-7 .wpfMainWrapper .wpfFilterWrapper input[type="radio"] {
    border-radius: 50% !important;
}

.elementor-kit-7 .wpfMainWrapper .wpfFilterWrapper input[type="radio"]::before,
.elementor-kit-7 .wpfMainWrapper .wpfFilterWrapper input[type="checkbox"]::before {
    display: none !important;
}
