/*
Theme Name: CandyCraft
Template: twentytwentyfive
Description: Tema de la tienda CandyCraft (hijo de Twenty Twenty-Five). Medidas copiadas de la tienda actual en Tienda Nube.
Version: 0.3.26
Text Domain: candycraft
*/

:root {
  --cc-verde: #93E1D3;
  --cc-verde-claro: #D7F4EF;
  --cc-lila: #9280D3;
  --cc-rosa: #FAB7DA;
  --cc-gris: #ECF0F1;
  --cc-texto: #575756;
  --cc-gris-texto: #7F8C8D;
  --cc-sombra: 0 0 5px rgba(87, 87, 86, .2);
  /* Tienda Nube pide Poppins pero no la carga: en la práctica se ve en Arial. */
  --cc-poppins: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --cc-montserrat: Montserrat, sans-serif;
  --cc-lato: Lato, sans-serif;
}

body { background: var(--cc-gris); color: var(--cc-texto); font-family: var(--cc-lato); font-size: 14px; font-weight: 400; }
a { color: var(--cc-texto); }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.cc-archivo, .cc-pagina { max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }

/* ───────── Encabezado ───────── */
.cc-header { background: #fff; position: relative; z-index: 50; }
.cc-header-main { padding: 15px 40px !important; gap: 30px !important; min-height: 105px; box-sizing: border-box; }
.cc-header .wp-block-site-logo { flex: 0 0 auto; }
.cc-header .wp-block-site-logo img { width: 254px !important; height: auto; max-width: none; }
.cc-header .wp-block-search { flex: 0 1 636px; margin: 0 auto !important; }
.cc-header .wp-block-search__inside-wrapper { border: .8px solid var(--cc-rosa) !important; border-radius: 50px; padding: 0 10px 0 15px !important; height: 48px; box-sizing: border-box; background: #fff; }
.cc-header .wp-block-search__input { border: 0 !important; font-family: var(--cc-lato); font-size: 14px; text-align: center; color: var(--cc-texto); background: transparent; padding: 0 !important; }
.cc-header .wp-block-search__input::placeholder { color: var(--cc-texto); opacity: .7; }
.cc-header .wp-block-search__button { background: transparent !important; color: var(--cc-texto) !important; border: 0; padding: 0 4px !important; margin: 0 !important; }
.cc-header .wp-block-search__button svg { width: 24px; height: 24px; }
.cc-header-icons { gap: 18px !important; flex: 0 0 auto; }
.cc-cuenta { display: flex; align-items: center; gap: 8px; }
.cc-cuenta-icono { display: flex; color: var(--cc-texto); }
.cc-cuenta-texto { display: flex; flex-direction: column; font-size: 12px; line-height: 14px; }
.cc-cuenta-texto a { color: var(--cc-texto); font-weight: 700; text-decoration: none; }
.cc-cuenta-texto span:last-child a { font-weight: 400; }
.cc-wa .wp-social-link { background: transparent !important; color: #25d366 !important; padding: 0 !important; }
.cc-wa .wp-social-link a { padding: 0 !important; }
.cc-wa .wp-social-link svg { width: 26px; height: 26px; }
.cc-header .wc-block-mini-cart__button { padding: 0; color: var(--cc-texto); }
.cc-header .wc-block-mini-cart__icon { width: 28px; height: 28px; }
.cc-header .wc-block-mini-cart__badge { background: var(--cc-verde) !important; color: #fff !important; border: 0 !important; font-size: 10px; min-width: 16px; height: 16px; top: -6px; right: -8px; }
.cc-cel-izq { display: none; }

/* Menú de escritorio */
.cc-nav { background: var(--cc-verde); position: relative; z-index: 60; }
.cc-nav-lista { list-style: none; margin: 0; padding: 0 40px; display: flex; justify-content: center; }
.cc-nav-lista > li { padding: 0 15px; }
.cc-nav-link { display: block; padding: 15px 0; font-family: var(--cc-poppins); font-size: 18px; line-height: 21px; text-transform: uppercase; color: #fff; text-decoration: none; }
.cc-nav-link:hover, .cc-nav-link.activo { color: var(--cc-lila); }
.cc-nav-desplegable:hover > .cc-nav-link, .cc-nav-desplegable.abierto > .cc-nav-link { color: var(--cc-lila); }
.cc-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 20px 40px; box-shadow: 0 6px 10px rgba(87, 87, 86, .15); }
.cc-nav-desplegable:hover .cc-mega, .cc-nav-desplegable:focus-within .cc-mega, .cc-nav-desplegable.abierto .cc-mega { display: block; }
.cc-mega-cols { column-count: 6; column-gap: 30px; }
.cc-mega-grupo { break-inside: avoid; display: flex; flex-direction: column; margin-bottom: 10px; }
.cc-mega-cat { display: block; background: var(--cc-lila); color: #fff; border-radius: 10px; font-family: var(--cc-poppins); font-weight: 700; font-size: 12px; line-height: 20px; text-transform: uppercase; text-align: center; text-decoration: none; padding: 0 8px; margin-bottom: 10px; }
.cc-mega-cat:hover { color: #fff; filter: brightness(.95); }
.cc-mega-sub { font-family: var(--cc-poppins); font-size: 14px; line-height: 20px; color: var(--cc-texto); text-decoration: none; margin-bottom: 10px; }
.cc-mega-sub:hover { color: var(--cc-lila); }
.cc-nav-chico { position: relative; }
.cc-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 6px 10px rgba(87, 87, 86, .15); padding: 10px 0; z-index: 2; }
.cc-nav-chico:hover .cc-sub, .cc-nav-chico:focus-within .cc-sub, .cc-nav-chico.abierto .cc-sub { display: block; }
.cc-sub a { display: block; padding: 8px 20px; font-family: var(--cc-poppins); font-size: 14px; color: var(--cc-texto); text-decoration: none; }
.cc-sub a:hover { color: var(--cc-lila); }

/* Franja de avisos */
.cc-adbar { background: var(--cc-gris); color: var(--cc-gris-texto); padding: 15px 16px !important; }
.cc-adbar p { max-width: none !important; text-align: center; margin: 0 !important; font-family: var(--cc-montserrat); font-weight: 300; font-size: 14px; letter-spacing: .1px; text-transform: uppercase; line-height: 17px; }

/* Franja de avisos animada (estilo Voltra). Los textos se editan en el encabezado; tienda.js arma la vuelta sin cortes. */
.cc-ticker { background: linear-gradient(90deg, #F8CADD, #E6D9F2); height: 36px; display: flex !important; align-items: center; overflow: hidden; padding: 0 !important; margin: 0 !important; }
.cc-ticker-track { display: flex; flex-wrap: nowrap; width: max-content; animation: cc-ticker var(--cc-ticker-dur, 90s) linear infinite; }
.cc-ticker p { white-space: nowrap; max-width: none !important; margin: 0 !important; font-family: var(--cc-montserrat); font-weight: 400; font-size: 15px; letter-spacing: .3px; line-height: 36px; color: #575756; }
.cc-ticker p strong { font-weight: 700; color: #4a4a49; }
.cc-ticker p::after { content: "✦"; color: #9280D3; font-size: 13px; margin: 0 34px; }
.cc-ticker:hover .cc-ticker-track { animation-play-state: paused; }
@keyframes cc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cc-ticker-track { animation: none; } }

/* Menú del celular */
.cc-cel-menu { position: fixed; inset: 0; z-index: 100001; }
.cc-cel-menu[hidden] { display: none; }
.cc-menu-abierto { overflow: hidden; }
.cc-cel-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.cc-cel-cajon { position: absolute; inset: 0; background: var(--cc-gris); overflow-y: auto; animation: cc-entra .2s ease-out; }
@keyframes cc-entra { from { transform: translateX(-100%); } }
.cc-cel-panel { min-height: 100%; display: flex; flex-direction: column; }
.cc-cel-panel[hidden] { display: none; }
.cc-cel-cabeza { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; min-height: 48px; box-sizing: border-box; }
.cc-cel-volver { background: none; border: 0; padding: 0 0 0 18px; font-family: var(--cc-lato); font-size: 16px; color: var(--cc-texto); position: relative; cursor: pointer; }
.cc-cel-volver::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.cc-cel-cerrar { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--cc-texto); cursor: pointer; padding: 0; font-weight: 300; }
.cc-cel-fila { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 17px 15px; border: 0; border-bottom: 1px solid rgba(87, 87, 86, .1); background: none; font-family: var(--cc-lato); font-weight: 700; font-size: 14px; text-transform: uppercase; color: #000; text-decoration: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.cc-cel-todos { font-size: 11px; }
.cc-cel-flecha { width: 9px; height: 9px; border-right: 1.5px solid var(--cc-texto); border-top: 1.5px solid var(--cc-texto); transform: rotate(45deg); margin-right: 6px; flex: none; }
.cc-cel-cuenta { margin-top: auto; padding: 18px 15px 18px 44px; border-top: 1px solid rgba(87, 87, 86, .1); font-size: 14px; color: var(--cc-texto); text-decoration: none; position: relative; }
.cc-cel-cuenta::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575756' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5z'/%3E%3C/svg%3E") no-repeat center / contain; }
.cc-cel-cuenta span { margin-left: 4px; }

/* ───────── Portada ───────── */
.cc-home { padding: 0 0 20px; }
.cc-home .wp-block-post-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.cc-sec { padding: 20px 0; }
.cc-sec-blanca { background: #fff; }

/* Carrusel de banners */
.cc-sec-slider { padding: 33px 15px 20px; background: #fff; }
.cc-slider-wrap { position: relative; max-width: 1110px; margin: 0 auto; }
.cc-slider { position: relative; display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 0 !important; scrollbar-width: none; border-radius: 4px; box-shadow: var(--cc-sombra); background: #fff; }
.cc-slider::-webkit-scrollbar { display: none; }
.cc-slider > figure { flex: 0 0 100%; scroll-snap-align: start; margin: 0 !important; }
.cc-slider img { width: 100%; height: auto; object-fit: cover; display: block; }
.cc-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 40px; height: 60px; font-size: 40px; font-weight: 300; line-height: 60px; cursor: pointer; color: var(--cc-texto); z-index: 2; }
.cc-slider-btn.prev { left: -50px; } .cc-slider-btn.next { right: -50px; }
.cc-slider-puntos { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.cc-slider-puntos button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(87, 87, 86, .3); cursor: pointer; }
.cc-slider-puntos button.activo { background: var(--cc-texto); }
.cc-solo-cel { display: none !important; }

/* Banners */
.cc-grid-4, .cc-grid-2 { display: grid !important; gap: 15px !important; max-width: 1110px; margin: 0 auto !important; }
.cc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.cc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cc-grid-4 figure, .cc-grid-2 figure { margin: 0 !important; }
.cc-grid-4 img, .cc-grid-2 img, .cc-banner img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: var(--cc-sombra); }
.cc-grid-4 + .cc-grid-4 { margin-top: 15px !important; }
.cc-banner { max-width: 1110px; margin: 0 auto !important; }

/* Categorías en círculos */
.cc-cats-marco { position: relative; max-width: 1110px; margin: 0 auto; padding: 0 30px; box-sizing: border-box; }
.cc-cats { display: flex !important; gap: 0 !important; overflow-x: auto; flex-wrap: nowrap !important; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.cc-cats::-webkit-scrollbar { display: none; }
.cc-cat { flex: 0 0 calc(100% / 11); min-width: 95px; scroll-snap-align: start; text-align: center; gap: 8px !important; align-items: center; }
.cc-cat figure { margin: 0 !important; width: 80px; height: 80px; border: 3px solid var(--cc-rosa); border-radius: 50%; overflow: hidden; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; }
.cc-cat img { width: 74px; height: 74px; object-fit: cover; border-radius: 50%; display: block; }
.cc-cat p { font-family: var(--cc-lato); font-size: 12px; margin: 0 !important; line-height: 1.2; padding: 0 4px; }
.cc-cat a { color: var(--cc-texto); text-decoration: none; }
.cc-flecha { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 34px; font-weight: 300; color: var(--cc-texto); cursor: pointer; width: 30px; height: 50px; line-height: 50px; padding: 0; z-index: 2; }
.cc-flecha.prev { left: 0; } .cc-flecha.next { right: 0; }
.cc-flecha:disabled { opacity: .25; cursor: default; }
.cc-cats-marco .cc-flecha { top: 40px; }

/* Envíos / medios de pago / seguridad */
.cc-sec-info { padding: 30px 15px; }
.cc-info { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 15px !important; max-width: 1110px; margin: 0 auto !important; }
.cc-info-item { background: #fff; border-radius: 4px; box-shadow: var(--cc-sombra); padding: 16px; display: flex; align-items: center; gap: 16px; }
.cc-info-icono { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cc-rosa); display: flex; align-items: center; justify-content: center; }
.cc-info-item h3 { font-family: var(--cc-montserrat) !important; font-weight: 700; font-size: 14px !important; margin: 0 0 4px !important; color: var(--cc-texto); }
.cc-info-item p { font-size: 12px; line-height: 16px; margin: 0 !important; }

/* Carruseles de productos (Novedades, Destacados, relacionados) */
.cc-carrusel { background: var(--cc-verde-claro); padding: 25px 0; }
.cc-carrusel-relacionados, .cc-404 .cc-carrusel { background: transparent; }
.cc-carrusel-titulo { max-width: 1110px; margin: 0 auto !important; padding: 0 0 16px; font-family: var(--cc-montserrat) !important; font-weight: 700; font-size: 20px !important; color: var(--cc-texto); text-transform: uppercase; box-sizing: border-box; }
.cc-carrusel-relacionados .cc-carrusel-titulo { text-transform: none; font-size: 18px !important; }
.cc-carrusel-marco { position: relative; max-width: 1110px; margin: 0 auto; }
.cc-carrusel-marco .cc-flecha.prev { left: -45px; } .cc-carrusel-marco .cc-flecha.next { right: -45px; }
.cc-carrusel-lista { list-style: none; margin: 0 -7.5px; padding: 5px 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.cc-carrusel-lista::-webkit-scrollbar { display: none; }
.cc-carrusel-item { flex: 0 0 20%; padding: 0 7.5px; box-sizing: border-box; scroll-snap-align: start; display: flex; }

/* ───────── Tarjeta de producto ───────── */
.cc-card { background: #fff; border-radius: 4px; box-shadow: var(--cc-sombra); display: flex; flex-direction: column; width: 100%; overflow: hidden; font-family: var(--cc-poppins); }
.cc-card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.cc-card-img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; transition: opacity .3s; }
.cc-card-foto2 { opacity: 0; }
.cc-card:hover .cc-card-foto2 { opacity: 1; }
.cc-etiqueta { position: absolute; top: 8px; left: 8px; background: var(--cc-lila); color: #fff; font-family: var(--cc-poppins); font-weight: 600; font-size: 12px; line-height: 1; padding: 4px 6px; border-radius: 2px; z-index: 1; }
.cc-etiqueta-sin { background: var(--cc-texto); }
.cc-card-cuerpo { padding: 8px 10px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.cc-card-nombre { font-family: var(--cc-poppins); font-weight: 400; font-size: 13px; line-height: 16px; opacity: .8; color: var(--cc-texto); text-decoration: none; min-height: 48px; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-card-precio { font-family: var(--cc-poppins); font-weight: 700; font-size: 16px; color: var(--cc-texto); line-height: 18px; margin-top: auto; }
.cc-card-precio del { font-size: 12px; font-weight: 400; opacity: .6; margin-left: 4px; }
.cc-card-transf { font-family: var(--cc-poppins); font-weight: 700; font-size: 12px; margin: 8px 0 4px; color: var(--cc-texto); }
.cc-card-cuotas { font-family: var(--cc-poppins); font-size: 10px; color: var(--cc-rosa); margin-bottom: 12px; }
.cc-botones { display: flex; gap: 8px; justify-content: center; width: 100%; }
.cc-btn { flex: 0 1 90px; min-width: 0; height: 36px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: .8px solid transparent; border-radius: 5px; padding: 0 6px; font-family: var(--cc-poppins); font-weight: 700; font-size: 12px; letter-spacing: 0; text-transform: uppercase; text-decoration: none; color: #fff !important; cursor: pointer; transition: filter .15s; }
.cc-btn:hover { filter: brightness(.94); }
.cc-btn-comprar { background: var(--cc-verde); border-color: var(--cc-verde); }
.cc-btn-ver { background: var(--cc-rosa); }

/* ───────── Categorías, tags y búsqueda ───────── */
.cc-archivo-cabeza { background: #fff; }
.cc-archivo-cabeza-in { max-width: 1140px; margin: 0 auto; padding: 24px 15px 20px; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.cc-archivo-cabeza .woocommerce-breadcrumb, .cc-archivo-cabeza .wp-block-woocommerce-breadcrumbs { grid-column: 1 / -1; font-family: var(--cc-lato); font-size: 10px !important; margin: 0 0 10px !important; color: var(--cc-texto); }
.cc-archivo-cabeza h1 { font-family: var(--cc-montserrat) !important; font-weight: 700 !important; font-size: 28px !important; color: var(--cc-texto); margin: 0 !important; line-height: 1.2; }
.cc-orden { position: relative; }
.cc-orden-boton { background: none; border: 0; padding: 0 0 0 22px; font-family: var(--cc-lato); font-size: 14px; color: var(--cc-texto); text-decoration: underline; cursor: pointer; position: relative; }
.cc-orden-boton::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575756' stroke-width='1.6'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E") no-repeat center / contain; }
.cc-orden-lista { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; box-shadow: 0 6px 16px rgba(87, 87, 86, .2); border-radius: 4px; padding: 6px 0; min-width: 220px; z-index: 20; }
.cc-orden-lista[hidden] { display: none; }
.cc-orden-lista a { display: block; padding: 9px 16px; font-size: 14px; color: var(--cc-texto); text-decoration: none; }
.cc-orden-lista a:hover, .cc-orden-lista a.activa { background: var(--cc-gris); }
.cc-archivo-cabeza .woocommerce-ordering { margin: 0 !important; }
.cc-archivo-cabeza .woocommerce-ordering select { display: none; }
.cc-archivo { padding-top: 30px; padding-bottom: 40px; }
.cc-archivo .woocommerce-breadcrumb, .cc-prod-info .woocommerce-breadcrumb { font-family: var(--cc-lato); font-size: 10px !important; color: var(--cc-texto); margin: 0 0 10px !important; }
.woocommerce-breadcrumb a { color: var(--cc-texto); text-decoration: none; }
.cc-miga-sep { margin: 0 4px; }
.cc-archivo .woocommerce-products-header { display: inline-block; }
.cc-archivo .term-description { font-size: 14px; margin-bottom: 16px; }
.cc-archivo .woocommerce-result-count { display: none; }
.cc-archivo ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin: 0 0 30px !important; padding: 0 !important; clear: both; }
.cc-archivo ul.products::before, .cc-archivo ul.products::after { display: none !important; }
.cc-archivo ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; display: flex; text-align: center; }
.cc-archivo .woocommerce-pagination ul { border: 0 !important; display: flex !important; justify-content: center; gap: 6px; }
.cc-archivo .woocommerce-pagination li { border: 0 !important; }
.cc-archivo .woocommerce-pagination a, .cc-archivo .woocommerce-pagination span { border-radius: 4px; background: #fff; box-shadow: var(--cc-sombra); padding: 8px 12px !important; color: var(--cc-texto); font-family: var(--cc-poppins); }
.cc-archivo .woocommerce-pagination span.current { background: var(--cc-verde); color: #fff; }
.cc-archivo .woocommerce-info { background: #fff; border-top-color: var(--cc-verde); }
.cc-archivo .woocommerce-info::before { color: var(--cc-verde); }

/* ───────── Página de producto ───────── */
.cc-prod-banda { background: #fff; padding: 24px 0 16px; }
.cc-prod { max-width: 1140px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; }
.cc-prod-galeria { display: flex; gap: 16px; min-width: 0; padding-top: 8px; }
.cc-prod-miniaturas { flex: 0 0 85px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-prod-mini-lista { display: flex; flex-direction: column; gap: 16px; max-height: 480px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cc-prod-mini-lista::-webkit-scrollbar { display: none; }
.cc-prod-mini { width: 85px; height: 85px; flex: none; padding: 0; border: 1px solid transparent; background: #fff; cursor: pointer; opacity: .6; transition: opacity .15s; }
.cc-prod-mini.activa, .cc-prod-mini:hover { opacity: 1; border-color: rgba(87, 87, 86, .3); }
.cc-prod-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-prod-mini-flecha { width: 30px; height: 18px; border: 0; background: none; cursor: pointer; position: relative; }
.cc-prod-mini-flecha::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-left: 1.5px solid var(--cc-texto); border-top: 1.5px solid var(--cc-texto); transform: translate(-50%, -25%) rotate(45deg); }
.cc-prod-mini-flecha.abajo::after { transform: translate(-50%, -75%) rotate(225deg); }
.cc-prod-principal { position: relative; flex: 1; min-width: 0; }
.cc-prod-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.cc-prod-tira::-webkit-scrollbar { display: none; }
.cc-prod-foto { flex: 0 0 100%; scroll-snap-align: center; display: block; }
.cc-prod-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cc-prod-flecha { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); font-size: 26px; line-height: 34px; color: var(--cc-texto); cursor: pointer; }
.cc-prod-flecha.prev { left: 6px; } .cc-prod-flecha.next { right: 6px; }
.cc-prod-puntos { display: none; justify-content: center; gap: 6px; padding-top: 10px; }
.cc-prod-puntos span { width: 6px; height: 6px; border-radius: 50%; background: rgba(87, 87, 86, .3); }
.cc-prod-puntos span.activo { background: var(--cc-texto); }
.cc-prod-info { min-width: 0; padding-top: 16px; }
.cc-prod-titulo { font-family: var(--cc-montserrat) !important; font-weight: 700 !important; font-size: 28px !important; line-height: 1.2 !important; color: var(--cc-texto); margin: 0 !important; padding-bottom: 16px; }
.cc-prod-precio { font-family: var(--cc-montserrat); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.cc-prod-antes { font-size: 14px; font-weight: 400; opacity: .6; margin-left: 8px; }
.cc-prod-transf { color: var(--cc-rosa); font-size: 14px; margin-bottom: 8px; }
.cc-prod-cuotas, .cc-prod-desc15 { color: var(--cc-lila); font-size: 14px; margin-bottom: 8px; }
.cc-prod-cuotas strong, .cc-prod-desc15 strong { font-weight: 700; }
.cc-prod-vermas { display: inline-block; font-size: 12px; color: var(--cc-texto); text-decoration: none; margin-bottom: 30px; }
.cc-prod-vermas:hover { text-decoration: underline; }
.cc-prod-campo { margin-bottom: 30px; }
.cc-prod-etiqueta { display: block; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; }
.cc-prod-select { width: 100%; height: 42px; padding: 0 40px 0 12px; border: .8px solid rgba(87, 87, 86, .3); border-radius: 2px; font-family: var(--cc-lato); font-size: 14px; color: var(--cc-texto); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575756' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cc-prod-comprar { display: flex; gap: 15px; }
.cc-prod-cant { flex: 0 0 96px; display: flex; border: .8px solid rgba(87, 87, 86, .3); border-radius: 2px; height: 48px; box-sizing: border-box; }
.cc-prod-cant button { width: 30px; border: 0; background: none; font-size: 16px; color: var(--cc-texto); cursor: pointer; }
.cc-prod-cant input { width: 34px; border: 0; text-align: center; font-size: 14px; font-family: var(--cc-lato); color: var(--cc-texto); -moz-appearance: textfield; }
.cc-prod-cant input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cc-prod-agregar { flex: 1; height: 48px; border: 0; border-radius: 2px; background: var(--cc-verde); color: #fff; font-family: var(--cc-poppins); font-weight: 600; font-size: 14px; text-transform: uppercase; cursor: pointer; }
.cc-prod-agregar:hover { filter: brightness(.95); }
.cc-prod-agregar:disabled { background: #ccc; cursor: default; filter: none; }
.cc-prod-aviso { margin: 10px 0 0; font-size: 14px; min-height: 1em; }
.cc-prod-aviso.ok { color: #2e9e7e; font-weight: 700; }
.cc-prod-aviso.ok a { color: var(--cc-lila); margin-left: 6px; }
.cc-prod-aviso.error { color: #c0392b; }
.cc-prod-descripcion { margin-top: 30px; }
.cc-prod-descripcion h2 { font-family: var(--cc-montserrat) !important; font-weight: 700; font-size: 16px !important; margin: 0 0 24px !important; color: var(--cc-texto); }
.cc-prod-texto { font-size: 12px; line-height: 1.5; margin-bottom: 24px; overflow-wrap: anywhere; }
.cc-prod-texto p { margin: 0 0 12px; }
.cc-prod-texto img { max-width: 100%; height: auto; }
.cc-prod-compartir { display: flex; gap: 14px; }
.cc-prod-compartir a { color: var(--cc-texto); display: flex; }
.cc-prod .cc-etiqueta { top: 10px; left: 10px; }
.cc-producto-pagina .cc-carrusel-relacionados { padding: 30px 0 40px; }

/* ───────── Páginas de ayuda, carrito y pago ───────── */
.cc-pagina { padding-top: 30px; padding-bottom: 50px; }
.cc-pagina-titulo { font-family: var(--cc-montserrat) !important; font-weight: 700 !important; font-size: 28px !important; color: var(--cc-texto); margin: 0 0 30px !important; }
.cc-pagina-contenido { font-size: 14px; line-height: 1.6; }
.cc-pagina-contenido > * { max-width: none !important; }
.cc-pagina-contenido img { max-width: 100%; height: auto; }
.cc-pagina-contenido h2, .cc-pagina-contenido h3 { font-family: var(--cc-montserrat); color: var(--cc-texto); }
.cc-404 { text-align: center; }
.wc-block-cart, .wc-block-checkout { background: #fff; border-radius: 4px; box-shadow: var(--cc-sombra); padding: 24px !important; }
.wc-block-components-button:not(.is-link) { background: var(--cc-verde) !important; color: #fff !important; border-radius: 2px !important; font-family: var(--cc-poppins); font-weight: 600; text-transform: uppercase; }
.woocommerce-account .cc-pagina-contenido .woocommerce { background: #fff; border-radius: 4px; box-shadow: var(--cc-sombra); padding: 24px; }
.woocommerce-account .woocommerce-button, .woocommerce-account button.button { background: var(--cc-verde) !important; color: #fff !important; border-radius: 2px !important; }

/* ───────── Pie ───────── */
.cc-redes { background: var(--cc-rosa); padding: 20px !important; }
.cc-redes .wp-block-social-links { gap: 30px !important; justify-content: center; margin: 0 !important; }
.cc-redes .wp-social-link { background: #fff !important; color: var(--cc-rosa) !important; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cc-redes .wp-social-link a { padding: 0 !important; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cc-redes .wp-social-link svg { width: 18px; height: 18px; fill: var(--cc-rosa); }
.cc-footer { background: var(--cc-gris); color: var(--cc-texto); padding: 0 !important; }
.cc-footer-cols { max-width: 1140px; margin: 0 auto !important; padding: 26px 0 30px; gap: 0 !important; }
.cc-footer-cols .wp-block-column { padding: 0 15px; }
.cc-footer h4 { font-family: var(--cc-lato) !important; font-weight: 700; font-size: 12px !important; text-transform: uppercase; color: var(--cc-texto); margin: 0 0 6px !important; padding: 16px 0 0; }
.cc-footer ul { list-style: none; padding: 0; margin: 0; }
.cc-footer li { font-size: 14px; padding: 12px 0; line-height: 18px; }
.cc-footer a { color: var(--cc-texto); text-decoration: none; }
.cc-footer a:hover { color: var(--cc-lila); }
.cc-logos { max-width: 1140px; margin: 0 auto; padding: 24px 15px; border-top: 1px solid rgba(87, 87, 86, .15); display: flex; flex-wrap: wrap; gap: 20px 40px; box-sizing: border-box; }
.cc-logos-grupo { display: flex; align-items: flex-start; gap: 12px; }
.cc-logos-grupo p { margin: 0 !important; font-size: 14px; white-space: nowrap; padding-top: 6px; }
.cc-logos-lista { display: flex; flex-wrap: wrap; gap: 8px; max-width: 610px; }
.cc-logos-lista img { height: 27px; width: auto; background: #fff; border-radius: 3px; }
.cc-copy { background: rgba(87, 87, 86, .1); margin: 0 !important; padding: 8px 15px !important; font-size: 12px; line-height: 1.6; }
.cc-copy a { text-decoration: underline; }

/* ───────── Ventanita de compra rápida ───────── */
.cc-qv-abierto { overflow: hidden; }
.cc-qv { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-qv[hidden] { display: none; }
.cc-qv-fondo { position: absolute; inset: 0; background: rgba(60, 50, 80, .55); animation: cc-aparece .2s; }
.cc-qv-caja { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 920px; max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: cc-sube .25s ease-out; font-family: var(--cc-lato); color: var(--cc-texto); }
.cc-qv.cargando .cc-qv-agregar { opacity: .6; }
@keyframes cc-aparece { from { opacity: 0; } }
@keyframes cc-sube { from { opacity: 0; transform: translateY(16px); } }
.cc-qv-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f2f2f2; font-size: 24px; line-height: 1; color: var(--cc-texto); cursor: pointer; }
.cc-qv-galeria, .cc-qv-info { min-width: 0; }
.cc-qv-principal { position: relative; border-radius: 10px; overflow: hidden; background: #fafafa; }
.cc-qv-tira { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.cc-qv-tira::-webkit-scrollbar { display: none; }
.cc-qv-tira img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.cc-qv-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 26px; line-height: 38px; color: var(--cc-lila); cursor: pointer; }
.cc-qv-flecha.prev { left: 10px; } .cc-qv-flecha.next { right: 10px; }
.cc-qv-contador { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.9); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.cc-qv-flecha[hidden], .cc-qv-contador[hidden] { display: none; }
.cc-qv-miniaturas { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; }
.cc-qv-miniaturas button { flex: 0 0 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fafafa; cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.cc-qv-miniaturas button.activa, .cc-qv-miniaturas button:hover { opacity: 1; border-color: var(--cc-lila); }
.cc-qv-miniaturas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-qv-info { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.cc-qv-titulo { font-family: var(--cc-montserrat); font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0; padding-right: 30px; color: var(--cc-texto); }
.cc-qv-monto { display: block; font-family: var(--cc-montserrat); font-size: 24px; font-weight: 700; }
.cc-qv-monto del { font-size: 14px; font-weight: 400; opacity: .6; }
.cc-qv-transf { display: block; color: var(--cc-rosa); font-size: 14px; margin-top: 4px; }
.cc-qv-cuotas { display: block; color: var(--cc-lila); font-size: 14px; margin-top: 2px; }
.cc-qv-etiqueta { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.cc-qv-etiqueta strong { text-transform: none; letter-spacing: 0; color: var(--cc-lila); }
.cc-qv-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-qv-op { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1.5px solid #e3e3e3; border-radius: 30px; background: #fff; font-family: inherit; font-size: 13px; color: var(--cc-texto); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-qv-op img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cc-qv-op:not(:has(img)) { padding-left: 12px; }
.cc-qv-op:hover { border-color: var(--cc-lila); }
.cc-qv-op.activa { border-color: var(--cc-lila); background: #f3f0fb; font-weight: 700; }
.cc-qv-op.agotado { opacity: .45; text-decoration: line-through; }
.cc-qv-comprar { display: flex; gap: 10px; margin-top: 4px; }
.cc-qv-cant { display: flex; border: 1.5px solid #e3e3e3; border-radius: 6px; overflow: hidden; }
.cc-qv-cant button { width: 36px; border: 0; background: #fff; font-size: 18px; color: var(--cc-texto); cursor: pointer; }
.cc-qv-cant input { width: 42px; border: 0; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.cc-qv-cant input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cc-qv-agregar { flex: 1; border: 0; border-radius: 6px; padding: 14px 10px; background: var(--cc-verde); color: #fff; font-family: var(--cc-poppins); font-size: 14px; font-weight: 600; text-transform: uppercase; cursor: pointer; }
.cc-qv-agregar:hover { filter: brightness(.94); }
.cc-qv-agregar:disabled { background: #ccc; cursor: default; filter: none; }
.cc-qv-aviso { margin: 0; font-size: 14px; min-height: 1em; }
.cc-qv-aviso.ok { color: #2e9e7e; font-weight: 700; }
.cc-qv-aviso.ok a { color: var(--cc-lila); margin-left: 6px; }
.cc-qv-aviso.error { color: #c0392b; }
.cc-qv-detalle { font-size: 14px; color: var(--cc-lila); text-decoration: none; margin-top: auto; }

/* ───────── Celular ───────── */
@media (max-width: 991px) {
  .cc-header-main { padding: 15px !important; gap: 10px !important; min-height: 0; flex-wrap: wrap !important; position: relative; }
  .cc-cel-izq { display: flex; align-items: center; gap: 10px; flex: 1; }
  .cc-hamburguesa { width: 27px; height: 35px; border: 0; background: none; padding: 10px 7px 10px 0; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; box-sizing: border-box; }
  .cc-hamburguesa span { display: block; height: 2px; width: 20px; background: var(--cc-texto); border-radius: 1px; }
  .cc-cel-wa { color: #25d366; display: flex; }
  .cc-header .wp-block-site-logo { flex: 0 0 auto; }
  .cc-header .wp-block-site-logo img { width: 177px !important; }
  .cc-header-icons { flex: 1; justify-content: flex-end; gap: 14px !important; }
  .cc-header-icons .cc-wa, .cc-cuenta-texto { display: none !important; }
  .cc-header .wp-block-search { order: 9; flex: 0 0 100%; margin: 6px 0 0 !important; }
  .cc-nav { display: none; }
  .cc-adbar { padding: 10px 15px !important; }
  .cc-adbar p { font-size: 12px; line-height: 15px; }
  .cc-ticker { height: 30px; }
  .cc-ticker p { font-size: 12px; line-height: 30px; }
  .cc-ticker p::after { margin: 0 20px; font-size: 11px; }
  .cc-solo-escritorio { display: none !important; }
  .cc-solo-cel { display: block !important; }
  .cc-info { grid-template-columns: 1fr !important; }
  .cc-sec-slider { padding: 30px 15px 20px; }
  .cc-slider-btn { display: none; }
  .cc-grid-4, .cc-grid-2 { grid-template-columns: 1fr !important; padding: 0 15px; }
  .cc-cats-marco { padding: 0 25px; }
  .cc-cat { flex: 0 0 33.333%; min-width: 0; }
  .cc-carrusel { padding: 25px 15px; }
  .cc-carrusel-marco .cc-flecha { display: none; }
  .cc-carrusel-item { flex-basis: 50%; }
  .cc-header .wp-block-search { margin: 6px 0 0 !important; }
  .cc-archivo-cabeza-in { grid-template-columns: 1fr; padding: 16px 15px 0; }
  .cc-orden { margin: 16px -15px 0; border-top: 1px solid rgba(87, 87, 86, .1); text-align: center; padding: 14px 0; }
  .cc-orden-boton { text-decoration: none; text-transform: uppercase; font-size: 13px; }
  .cc-orden-lista { left: 15px; right: 15px; }
  .cc-archivo { padding-top: 15px; }
  .cc-archivo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-prod { grid-template-columns: 1fr; gap: 10px; }
  .cc-prod-galeria { flex-direction: column; padding-top: 0; }
  .cc-prod-miniaturas { display: none; }
  .cc-prod-flecha { display: block; }
  .cc-prod-puntos { display: flex; }
  .cc-prod-info { padding-top: 6px; }
  .cc-prod-titulo { font-size: 24px !important; }
  .cc-footer-cols { padding: 10px 0 20px; }
  .cc-logos { flex-direction: column; }
  .cc-logos-grupo { flex-direction: column; }
}
@media (max-width: 600px) {
  .cc-btn { font-size: 11px; padding: 0 4px; flex-basis: 50%; }
  .cc-card-cuerpo { padding: 8px 8px 10px; }
  .cc-botones { gap: 6px; }
  .cc-qv { padding: 0; align-items: flex-end; }
  .cc-qv-caja { grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 20px; border-radius: 16px 16px 0 0; max-height: 92vh; animation-name: cc-sube-movil; }
  @keyframes cc-sube-movil { from { transform: translateY(100%); } }
  .cc-qv-flecha { width: 34px; height: 34px; line-height: 32px; font-size: 22px; }
  .cc-qv-miniaturas button { flex-basis: 52px; height: 52px; }
  .cc-qv-titulo { font-size: 18px; }
  .cc-qv-monto { font-size: 22px; }
  .cc-qv-info { padding-top: 0; gap: 12px; }
  .cc-qv-comprar { position: sticky; bottom: -20px; background: #fff; padding: 10px 0; margin: 0 -2px; }
}

/* Con la barra de administración de WordPress (solo la ve el dueño logueado) el menú del celular arranca debajo. */
.admin-bar .cc-cel-cajon { top: 46px; }
@media (min-width: 783px) { .admin-bar .cc-cel-cajon { top: 32px; } }
.cc-pagina-contenido { max-width: 760px; }
.woocommerce-cart .cc-pagina-contenido, .woocommerce-checkout .cc-pagina-contenido, .woocommerce-account .cc-pagina-contenido { max-width: none; }
.cc-pagina-contenido iframe { max-width: 100%; }

/* Fondos de la portada como en Tienda Nube: franja gris fina debajo del carrusel y el banner del newsletter sobre blanco. */
.cc-home .wp-block-post-content > .cc-sec:last-child { background: #fff; padding: 0 15px 30px; }
.cc-home { padding-bottom: 0; }

/* Celular: encabezado fijo, una tarjeta grande por vez en los carruseles y pie con secciones plegables. */
@media (max-width: 991px) {
  header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
  .admin-bar header.wp-block-template-part { top: 46px; }
  .cc-home .wp-block-post-content > .cc-sec-slider.cc-solo-cel { margin-bottom: 0 !important; }
  .cc-carrusel-item { flex-basis: 88%; }
  .cc-footer-cols { padding: 0 !important; display: block !important; }
  .cc-footer-cols .wp-block-column { padding: 0; border-bottom: 1px solid rgba(87, 87, 86, .12); }
  .cc-footer h4 { padding: 15px !important; margin: 0 !important; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
  .cc-footer h4::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--cc-texto); border-bottom: 1.5px solid var(--cc-texto); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
  .cc-footer .wp-block-column.abierta h4::after { transform: rotate(225deg); margin-top: 4px; }
  .cc-footer .wp-block-column ul { display: none; padding: 0 15px 10px; }
  .cc-footer .wp-block-column.abierta ul { display: block; }
  .cc-footer li { padding: 8px 0; }
  .cc-logos { border-top: 0; padding: 20px 15px; }
  .cc-copy { text-align: center; padding: 14px 15px !important; }
}


/* Buscador justo en el centro de la página (compu). */
@media (min-width: 992px) {
  .cc-header-main { position: relative; }
  .cc-header .wp-block-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(636px, calc(100% - 700px)); margin: 0 !important; }
}

/* En la compu los banners no se deslizan con la ruedita: solo flechas y puntitos. En el celular, con el dedo. */
@media (min-width: 992px) { .cc-slider { overflow-x: hidden; } }
.cc-slider > figure, .cc-grid-4 figure, .cc-grid-2 figure, .cc-banner { line-height: 0; }
.cc-slider > figure a, .cc-grid-4 figure a, .cc-grid-2 figure a { display: block; }

/* Carrito y pago: la caja blanca no se sale de la pantalla en el celular. */
.wc-block-cart, .wc-block-checkout { box-sizing: border-box; width: 100%; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 600px) {
  .wc-block-cart, .wc-block-checkout { padding: 12px !important; }
  .cc-pagina { padding-left: 12px; padding-right: 12px; }
}
