/*
Theme Name: Flatsome Child – KODIGO
Description: Tema hijo de Flatsome con estilo de tienda tipo Kemik y colores de KODIGO Innovación y Desarrollo.
Author: KODIGO Innovación y Desarrollo
Template: flatsome
Version: 1.7.3
Text Domain: flatsome-child
*/

/* =========================================================
   COLORES DE LA MARCA  (cámbialos aquí y se cambia todo)
   ========================================================= */
:root {
	--kd-azul:        #1B3054;  /* azul KODIGO: encabezado, títulos   */
	--kd-azul-claro:  #2A4A7F;
	--kd-dorado:      #F9AE09;  /* dorado KODIGO: botón Comprar       */
	--kd-dorado-hover:#E09C00;
	--kd-oferta:      #C62839;  /* rojo de oferta: precio y % off     */
	--kd-verde:       #1E9E5A;  /* existencia                         */
	--kd-verde-fondo: #D8F5E6;  /* píldora "Entrega rápida"           */
	--kd-gris-fondo:  #F4F5F7;  /* fondo de tarjetas                  */
	--kd-gris-texto:  #6B7280;
	--kd-texto:       #111827;
	--kd-radio:       18px;

	/* Variables que usa Flatsome */
	--primary-color:  var(--kd-azul);
	--fs-color-primary: var(--kd-azul);
	--fs-color-secondary: var(--kd-oferta);
}

body,
h1, h2, h3, h4, h5, h6,
.nav > li > a,
.button, button, input {
	font-family: "Outfit", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { color: var(--kd-texto); }

/* =========================================================
   1. ENCABEZADO SÓLIDO (logo + buscar + carrito + cuenta)
   ========================================================= */
#masthead,
.header-main,
.header-bg-color,
.header-wrapper.stuck .header-bg-color {
	background-color: var(--kd-azul) !important;
}

.header-main .nav > li > a,
.header-main .icon-menu,
.header-main .header-cart-link,
.header-main .account-item a,
.header-main i {
	color: #fff !important;
}

.header-main .nav > li > a:hover,
.header-main .nav > li.active > a { color: var(--kd-dorado) !important; }

.header-main .cart-icon strong {
	border-color: #fff;
	color: #fff;
}
.header-main .cart-icon strong:after { border-color: #fff; }

/* Buscador redondeado */
.header-search-form .search-field,
.searchform .search-field {
	border-radius: 999px 0 0 999px !important;
	border: 0 !important;
	box-shadow: none !important;
	padding-left: 18px;
}
.searchform .ux-search-submit,
.searchform .button.icon {
	border-radius: 0 999px 999px 0 !important;
	background: var(--kd-dorado) !important;
	color: var(--kd-azul) !important;
}

/* Barra secundaria (menú de categorías) */
.header-bottom {
	background: #fff !important;
	border-bottom: 1px solid #eceef2;
}
.header-bottom .nav > li > a { color: var(--kd-azul) !important; font-weight: 500; }

/* =========================================================
   2. BANNER PRINCIPAL (slider) – esquinas y puntos
   ========================================================= */
.slider-wrapper .flickity-page-dots .dot {
	width: 10px; height: 10px;
	background: #fff; opacity: .55; border: 0;
	transition: width .2s;
}
.slider-wrapper .flickity-page-dots .dot.is-selected {
	width: 28px; border-radius: 99px; opacity: 1;
}

/* =========================================================
   3. CATEGORÍAS EN CÍRCULOS  ([kodigo_categorias])
   ========================================================= */
/* :not(.row) = solo el shortcode, no la fila "kd-categorias" de la portada */
.kd-categorias:not(.row) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 18px 12px;
	margin: 10px 0 30px;
}
.kd-cat {
	display: flex; flex-direction: column; align-items: center;
	text-align: center; text-decoration: none;
	color: var(--kd-gris-texto);
}
.kd-cat-img {
	width: 100px; height: 100px;
	border-radius: 50%;
	background: #FDEBD3;
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	transition: transform .2s, box-shadow .2s;
}
.kd-cat-img img {
	width: 78%; height: 78%;
	object-fit: contain;
	margin: 0;
}
.kd-cat:hover .kd-cat-img {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(27, 48, 84, .15);
}
.kd-cat-nombre {
	margin-top: 8px;
	font-size: 15px; line-height: 1.2;
	color: var(--kd-azul);
}

/* =========================================================
   4. TÍTULO DE SECCIÓN  ([kodigo_titulo])
   ========================================================= */
.kd-titulo {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin: 10px 0 18px;
}
.kd-titulo h2 {
	margin: 0; font-size: 26px; font-weight: 700;
	color: var(--kd-texto);
}
.kd-titulo p { margin: 2px 0 0; color: var(--kd-gris-texto); }
.kd-ver-todo {
	white-space: nowrap;
	background: #F1F3F6;
	color: var(--kd-texto) !important;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 600;
}
.kd-ver-todo:hover { background: var(--kd-dorado); }

/* =========================================================
   5. TARJETAS DE PRODUCTO (tienda, categorías, carruseles)
   ========================================================= */
.product-small.box {
	background: #fff;
	border-radius: var(--kd-radio);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.product-small.box:hover {
	box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
	transform: translateY(-2px);
}
.product-small .box-image {
	background: #fff; /* fondo blanco en las fotos */
	border: 1px solid #EEF0F3;
	border-radius: var(--kd-radio);
	padding: 14px;
}
.product-small .box-image img { mix-blend-mode: multiply; }

.product-small .box-text { padding: 12px 6px 16px; }
.product-small .name.product-title,
.product-small .product-title a {
	font-size: 15px; line-height: 1.3;
	color: var(--kd-texto); font-weight: 500;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.product-small .category { display: none; }

/* Precio: oferta en rojo + anterior tachado */
.price-wrapper .price,
.product-small .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price ins, .price ins .amount {
	color: var(--kd-oferta) !important;
	font-weight: 700; text-decoration: none;
}
.price del, .price del .amount {
	color: #9CA3AF !important;
	font-weight: 400; font-size: .85em; opacity: 1;
}
.price > .amount,
.price > .woocommerce-Price-amount { color: var(--kd-texto); font-weight: 700; }

/* Etiqueta "15% off" */
.badge-container { margin: 12px; }
.badge-container .badge { height: auto; width: auto; }
.badge-container .badge-inner,
.badge-container .badge-inner.on-sale {
	background: var(--kd-oferta) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 6px 12px !important;
	font-size: 14px; font-weight: 700;
	line-height: 1;
	height: auto; width: auto;
	white-space: nowrap;
	border: 0 !important;
}
.badge-container .badge-inner:before,
.badge-container .badge-inner:after { display: none !important; }

/* Botón "Añadir al carrito" de las tarjetas */
.product-small .add-to-cart-button a,
.product-small .button.add_to_cart_button {
	background: var(--kd-dorado) !important;
	color: var(--kd-azul) !important;
	border-radius: 999px; border: 0;
	font-weight: 700; text-transform: none; letter-spacing: 0;
}

/* =========================================================
   6. PÁGINA DE PRODUCTO
   ========================================================= */
.woocommerce-breadcrumb,
.breadcrumbs {
	font-size: 15px; text-transform: none; letter-spacing: 0;
	color: var(--kd-gris-texto);
}
.breadcrumbs a:last-child,
.woocommerce-breadcrumb > *:last-child { color: var(--kd-texto); font-weight: 600; }

/* div. = solo la marca del tema (el plugin usa <span class="kd-marca">) */
div.kd-marca {
	color: var(--kd-gris-texto);
	font-size: 16px; margin-bottom: 6px;
}
div.kd-marca a { color: var(--kd-texto); text-decoration: underline; font-weight: 500; }

.product-info .product-title,
.product-main h1.product-title {
	font-size: 30px; line-height: 1.2;
	font-weight: 700; color: var(--kd-texto);
	text-transform: none;
}
.product-info .is-divider { display: none; }

.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; }
.star-rating span:before,
.star-rating:before { color: #F5B700; }

.kd-meta { margin: 10px 0 14px; }
.kd-sku { color: var(--kd-gris-texto); letter-spacing: .5px; margin-bottom: 10px; }
.kd-sku span { color: #4B5563; }
.kd-pill-entrega {
	display: inline-block;
	background: var(--kd-verde-fondo);
	color: #0E6B3B;
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 600; font-size: 15px;
}

.product-info .price-wrapper .price {
	font-size: 34px;
}
.product-info .price-wrapper .price del { font-size: .55em; }

/* div. = solo el del tema (el plugin usa <p class="kd-ahorro"> rojo) */
div.kd-ahorro {
	color: var(--kd-verde);
	font-weight: 600; margin: -6px 0 14px;
}

/* Existencia */
p.stock.in-stock {
	color: var(--kd-verde) !important; font-weight: 600;
	display: flex; align-items: center; gap: 6px;
}
p.stock.in-stock:before {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: var(--kd-verde); display: inline-block;
}
p.stock.out-of-stock { color: var(--kd-oferta) !important; font-weight: 600; }

/* Botón principal amarillo, redondo */
.single_add_to_cart_button,
.single_add_to_cart_button.button,
.checkout-button,
#place_order {
	background: var(--kd-dorado) !important;
	color: var(--kd-azul) !important;
	border-radius: 999px !important;
	font-weight: 700; font-size: 17px;
	text-transform: none; letter-spacing: 0;
	padding: 0 34px; min-height: 50px;
	border: 0;
	box-shadow: 0 4px 0 var(--kd-dorado-hover);
}
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover { background: var(--kd-dorado-hover) !important; }

.quantity input[type=number] { border-radius: 0; }
.quantity .minus { border-radius: 999px 0 0 999px; }
.quantity .plus  { border-radius: 0 999px 999px 0; }

/* Galería: fondo gris suave */
.product-gallery .woocommerce-product-gallery__image,
.product-images .flickity-viewport {
	background: #fff;
	border-radius: var(--kd-radio);
}

/* Pestañas de descripción */
.product-tabs li a { text-transform: none; font-size: 16px; letter-spacing: 0; }
.product-tabs li.active > a { color: var(--kd-azul); }

/* =========================================================
   7. BARRA FIJA "COMPRAR" (solo celular)
   ========================================================= */
.kd-barra-compra { display: none; }

/* =========================================================
   8. GENERALES
   ========================================================= */
a { color: var(--kd-azul-claro); }
.button.primary, .button.is-outline.primary { border-radius: 999px; }
.footer-wrapper, .absolute-footer.dark { background: var(--kd-azul) !important; }


@media only screen and (max-width: 849px) {
/*************** CELULAR (849px, la misma medida que usa Flatsome) ***************/

	.kd-categorias:not(.row) {
		display: flex;
		overflow-x: auto;
		gap: 14px;
		padding-bottom: 6px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.kd-categorias:not(.row)::-webkit-scrollbar { display: none; }
	.kd-cat { flex: 0 0 84px; scroll-snap-align: start; }
	.kd-cat-img { width: 80px; height: 80px; }
	.kd-cat-nombre { font-size: 13px; }

	.kd-titulo h2 { font-size: 21px; }

	.product-info .product-title,
	.product-main h1.product-title { font-size: 25px; }
	.product-info .price-wrapper .price { font-size: 28px; }

	/* Barra fija abajo */
	.kd-barra-compra {
		display: flex;
		position: fixed; left: 0; right: 0; bottom: 0;
		z-index: 999;
		align-items: center; justify-content: space-between;
		gap: 10px;
		background: #fff;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -6px 20px rgba(17, 24, 39, .12);
	}
	.kd-barra-info { display: flex; flex-direction: column; min-width: 0; }
	.kd-barra-stock { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
	.kd-barra-stock.si { color: var(--kd-verde); }
	.kd-barra-stock.si:before {
		content: ""; width: 8px; height: 8px; border-radius: 50%;
		background: var(--kd-verde);
	}
	.kd-barra-stock.no { color: var(--kd-oferta); }
	.kd-barra-precio .price,
	.kd-barra-precio { display: flex; align-items: baseline; gap: 6px; font-size: 22px; line-height: 1.1; }
	.kd-barra-precio ins { color: var(--kd-oferta); font-weight: 800; text-decoration: none; }
	.kd-barra-precio del { color: #9CA3AF; font-size: 14px; }
	.kd-barra-precio > .amount { font-weight: 800; color: var(--kd-texto); }

	.kd-barra-btn {
		display: inline-flex; align-items: center; gap: 8px;
		background: var(--kd-dorado); color: var(--kd-azul);
		border: 0; border-radius: 999px;
		padding: 0 26px; height: 52px; margin: 0;
		font-size: 18px; font-weight: 700; text-transform: none;
		box-shadow: 0 4px 0 var(--kd-dorado-hover);
		flex-shrink: 0;
	}

	/* Espacio para que la barra no tape el pie de página */
	body.kd-con-barra { padding-bottom: 90px; }
	body.kd-con-barra .back-to-top { bottom: 100px !important; }

	/* ---------- Banners de la portada ---------- */
	/* El texto quedaba pegado al borde izquierdo */
	.kd-banner .text-inner { padding: 0 14px; }
	/* Botones de los banners: Flatsome los achicaba a 9 px */
	.kd-banner .button {
		font-size: 13px !important;
		min-height: 36px; line-height: 36px;
		padding: 0 18px; margin-top: 6px;
	}

	/* ---------- Encabezado: iconos más fáciles de tocar ---------- */
	.header-main .mobile-nav > li > a {
		min-width: 40px; min-height: 44px;
		display: inline-flex; align-items: center; justify-content: center;
	}

	/* ---------- Precios: el precio anterior se leía muy pequeño ---------- */
	.product-small .price del,
	.product-small .price del .amount,
	.product-small .price del bdi { font-size: 12px !important; }

	/* ---------- Página de producto ---------- */
	/* Botones - y + de cantidad más anchos */
	.ux-quantity .ux-quantity__button { width: 38px !important; }

	/* Textos pequeños de las cajitas de garantía/envío */
	.product-info small { font-size: 12px; line-height: 1.4; }

	/* Pestañas (Descripción, Especificaciones…) como botones en fila
	   en vez de una lista hacia abajo */
	.woocommerce-tabs .product-tabs {
		display: flex !important; flex-wrap: nowrap;
		overflow-x: auto; gap: 8px;
		padding: 2px 0 8px; margin-bottom: 14px;
		border: 0; scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.woocommerce-tabs .product-tabs::-webkit-scrollbar { display: none; }
	.woocommerce-tabs .product-tabs > li {
		display: block !important; width: auto !important;
		flex: 0 0 auto; margin: 0 !important;
	}
	.woocommerce-tabs .product-tabs > li > a {
		padding: 9px 16px; margin: 0;
		border: 1px solid #E5E7EB; border-radius: 999px;
		font-size: 14px; font-weight: 600; white-space: nowrap;
		color: var(--kd-texto);
	}
	.woocommerce-tabs .product-tabs > li > a:before { display: none; }
	.woocommerce-tabs .product-tabs > li.active > a {
		background: var(--kd-azul); border-color: var(--kd-azul); color: #fff;
	}
}


/* =========================================================
   9. BUSCADOR DEL ENCABEZADO EN EL CELULAR  (va dentro de functions.php)
      Menú + logo + buscador + cuenta + carrito en una sola barra.
      Al tocarlo se abre a pantalla completa, con fondo blanco.
      Las clases kd-hb-ok / kd-buscando / kd-escribiendo las pone
      el script en <html>.
   ========================================================= */
.kd-hbuscar,
.kd-hbuscar__panel { display: none; }

@media only screen and (max-width: 849px) {

	/* La fila de búsqueda de abajo ya no hace falta */
	.kd-hb-ok #wide-nav { display: none !important; }

	.kd-hb-ok #masthead .header-inner {
		display: flex; align-items: center; gap: 0;
		padding: 0 4px;
	}
	.kd-hb-ok #masthead .header-inner > .flex-left  { order: 1; flex: 0 0 auto; }
	.kd-hb-ok #masthead #logo {
		order: 2; flex: 0 0 auto;
		width: 146px !important; margin: 0 0 0 -4px !important; /* grande y a la par del menú */
	}
	.kd-hb-ok #masthead #logo img { width: 100%; height: auto; max-height: none; }
	.kd-hb-ok #masthead .header-inner > .flex-right { order: 4; flex: 0 0 auto; }
	/* Iconos más juntos para que el buscador tenga espacio */
	.kd-hb-ok #masthead .header-inner > .flex-col .nav > li { margin: 0 !important; }
	.kd-hb-ok #masthead .mobile-nav > li > a { min-width: 34px; padding: 0; }

	.kd-hb-ok .kd-hbuscar {
		display: flex; align-items: center; gap: 6px;
		order: 3; flex: 1 1 auto; min-width: 0;
	}
	.kd-hbuscar .searchform-wrapper { flex: 1 1 auto; min-width: 0; }
	.kd-hbuscar .searchform .flex-row {
		background: #fff; border-radius: 999px; padding: 3px;
	}
	.kd-hbuscar .searchform .search-field {
		height: 36px; min-height: 0; margin: 0;
		background: transparent; border-radius: 999px !important;
		font-size: 16px !important; /* 16px: el iPhone no hace zoom al tocar */
		padding: 0 6px 0 14px;
		color: var(--kd-texto);
	}
	.kd-hbuscar .searchform .ux-search-submit,
	.kd-hbuscar .searchform .button.icon {
		width: 36px; height: 36px; min-height: 0;
		margin: 0; padding: 0;
		border-radius: 50% !important;
		display: flex; align-items: center; justify-content: center;
	}
	/* En la barra (cerrado): botón "Buscar + lupa" a la derecha.
	   El campo cubre todo el botón (también la lupa): al tocarlo se abre
	   la pantalla de búsqueda con el teclado. */
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar { flex: 0 0 104px; margin-left: auto; }
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar .searchform .flex-row { position: relative; justify-content: flex-end; height: 36px; padding: 0; background: #fff; }
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar .searchform .flex-col { position: static; }
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar .searchform .search-field {
		position: absolute; top: 0; left: 0;
		width: 100%; height: 100%;
		padding: 0 32px 0 12px;
		background: transparent; transition: none;
	}
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar .searchform .ux-search-submit {
		position: relative; z-index: 2;
		width: 32px; height: 36px;
		pointer-events: none;
	}

	.kd-hbuscar__atras,
	.kd-hbuscar__cerrar { display: none; }
	/* El plugin pone su propia lista de recientes: aquí ya tenemos la nuestra */
	.kd-hb-ok .kd-hbuscar .kd-recientes { display: none !important; }

	/* ---------- Pantalla de búsqueda (al tocar el buscador) ---------- */
	html.kd-buscando,
	html.kd-buscando body { overflow: hidden; }

	/* Fondo blanco que tapa toda la página */
	html.kd-buscando body::after {
		content: "";
		position: fixed; top: 0; right: 0; bottom: 0; left: 0;
		z-index: 99998;
		background: #fff;
	}

	/* El encabezado queda encima del fondo blanco, pero invisible:
	   solo se ve la barra del buscador */
	.kd-buscando #header,
	.kd-buscando .header-wrapper { z-index: 100001 !important; }
	.kd-buscando #header { visibility: hidden; }
	.kd-buscando .kd-hbuscar { visibility: visible; }

	/* Barra de arriba: flecha para volver + campo */
	.kd-buscando .kd-hbuscar {
		position: fixed; top: 0; left: 0; right: 0;
		z-index: 100001;
		height: 62px;
		padding: 0 12px 0 4px; gap: 4px;
		background: #fff;
		border-bottom: 1px solid #EEF0F3;
	}
	.kd-buscando .kd-hbuscar .searchform .flex-row { background: #F1F3F6; }
	.kd-buscando .kd-hbuscar__atras {
		display: flex; align-items: center; justify-content: center;
		flex: 0 0 44px; width: 44px; height: 44px;
		margin: 0; padding: 0; min-height: 0;
		background: transparent; border: 0;
		color: var(--kd-texto);
	}
	.kd-buscando .kd-hbuscar__atras svg { width: 24px; height: 24px; }

	/* Recientes y populares */
	.kd-hb-ok .kd-hbuscar__panel {
		display: block;
		position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
		z-index: 100000;
		background: #fff;
		padding: 8px 16px 24px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.kd-hb-ok .kd-hbuscar__panel[hidden] { display: none; }

	.kd-hbuscar__grupo + .kd-hbuscar__grupo { margin-top: 22px; }
	.kd-hbuscar__cab {
		display: flex; align-items: center; justify-content: space-between;
		margin: 8px 0 2px;
	}
	.kd-hbuscar__cab strong { font-size: 15px; color: var(--kd-texto); }
	.kd-hbuscar__borrar {
		background: none; border: 0; margin: 0; padding: 4px 0; min-height: 0;
		font-size: 14px; font-weight: 500; line-height: 1.2;
		text-transform: none; letter-spacing: 0;
		text-decoration: underline; color: var(--kd-gris-texto);
	}
	.kd-hbuscar__fila {
		display: flex; align-items: center;
		border-bottom: 1px solid #F1F3F6;
	}
	.kd-hbuscar__item {
		flex: 1 1 auto; min-width: 0;
		display: flex; align-items: center; gap: 14px;
		padding: 13px 0;
		font-size: 16px; color: var(--kd-texto);
	}
	.kd-hbuscar__item svg { flex: 0 0 auto; color: #4B5563; }
	.kd-hbuscar__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.kd-hbuscar__item--pop svg { color: var(--kd-verde); }
	.kd-hbuscar__quitar {
		flex: 0 0 40px; width: 40px; height: 40px;
		display: flex; align-items: center; justify-content: center;
		margin: 0; padding: 0; min-height: 0;
		background: none; border: 0;
		color: #6B7280;
	}

	/* Resultados en vivo de Flatsome: en la misma pantalla blanca
	   (solo mientras se escribe; si no, taparían las recientes) */
	.kd-buscando:not(.kd-escribiendo) .kd-hbuscar .live-search-results { display: none !important; }
	.kd-buscando .kd-hbuscar .live-search-results {
		position: fixed !important;
		top: 62px !important; left: 0 !important; right: 0 !important; bottom: 0;
		width: auto !important; max-height: none;
		overflow-y: auto;
		background: #fff !important;
		color: var(--kd-texto) !important;
		box-shadow: none !important; border-radius: 0;
		text-align: left;
		z-index: 100000;
	}
	.kd-buscando .kd-hbuscar .live-search-results * { color: inherit; }
	.kd-buscando .kd-hbuscar .live-search-results .autocomplete-suggestion {
		padding: 10px 16px;
		border-bottom: 1px solid #F1F3F6;
	}
	.kd-buscando .kd-hbuscar .live-search-results .amount { color: var(--kd-oferta); font-weight: 700; }
}


/* =========================================================
   9b. ÍCONOS MODERNOS DEL ENCABEZADO (celular)
       Menú y cuenta con íconos de línea, y en el buscador
       solo la lupa (sin el círculo dorado).
   ========================================================= */
@media only screen and (max-width: 849px) {
	#masthead .icon-menu::before,
	#masthead .icon-user::before,
	.kd-hbuscar .icon-search::before {
		content: "";
		display: inline-block;
		width: 24px; height: 24px;
		vertical-align: middle;
		background-color: currentColor;
		-webkit-mask: var(--kd-ico) center / contain no-repeat;
		mask: var(--kd-ico) center / contain no-repeat;
	}
	#masthead .icon-menu { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E"); }
	#masthead .icon-user { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); }
	.kd-hbuscar .icon-search { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
	.kd-hbuscar .icon-search::before { width: 22px; height: 22px; }
	.kd-hb-ok:not(.kd-buscando) .kd-hbuscar .icon-search::before { width: 19px; height: 19px; }

	/* Menú y cuenta: ícono centrado exacto en su recuadro */
	.kd-hb-ok #masthead .mobile-nav > li > a {
		display: inline-flex; align-items: center; justify-content: center;
		min-width: 34px; height: 44px; min-height: 0;
	}
	#masthead .icon-menu,
	#masthead .icon-user {
		display: flex; align-items: center; justify-content: center;
		width: 24px; height: 24px; line-height: 1; margin: 0;
	}
	#masthead .icon-menu::before,
	#masthead .icon-user::before { display: block; }

	.kd-hbuscar .searchform .ux-search-submit,
	.kd-hbuscar .searchform .button.icon {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		color: #4B5563 !important;
	}
	.kd-hbuscar .searchform .icon-search { color: #4B5563 !important; }
}

/* =========================================================
   10. PÁGINA DE PRODUCTO LIMPIA (estilo tiendas grandes)
       Marca chica, título sin gritar, precio grande con
       centavos arriba y líneas finas que separan cada bloque.
   ========================================================= */
.product-info .breadcrumbs { font-size: 13px; margin-bottom: 8px; }
.product-info .breadcrumbs a:last-child { font-weight: 500; }

.product-info .kd-marca {
	display: block;
	font-size: 14px; font-weight: 600;
	text-transform: none; letter-spacing: 0;
	color: var(--kd-azul-claro);
	margin-bottom: 4px;
}
.product-info .product-title,
.product-main h1.product-title {
	font-size: 24px; line-height: 1.25;
	margin-bottom: 6px;
}

/* "Entrega rápida": texto verde sencillo, sin cajita */
.product-info .kd-meta { margin: 0 0 14px; }
.product-info .kd-pill-entrega {
	background: none; padding: 0;
	color: var(--kd-verde);
	font-size: 14px; font-weight: 600;
}

/* Precio: arriba el anterior tachado, abajo el actual grande */
.product-info .price-wrapper {
	border-top: 1px solid #E5E7EB;
	padding-top: 16px;
}
.product-info .price-wrapper .price {
	display: flex; flex-wrap: wrap; align-items: baseline;
	gap: 2px 8px;
	font-size: 36px; line-height: 1.1;
	margin-bottom: 4px;
}
.product-info .price-wrapper .price del { order: 1; }
.product-info .price-wrapper .price del,
.product-info .price-wrapper .price del .amount { font-size: 16px !important; font-weight: 500; }
.product-info .price-wrapper .price ins { order: 2; flex-basis: 100%; }
.product-info .price .amount { font-weight: 800; letter-spacing: -.5px; }

/* Centavos arriba, como en las tiendas grandes (los pone functions.php) */
.product-info .kd-cent,
.product-small .kd-cent,
.kd-barra-precio .kd-cent {
	font-size: .5em;
	vertical-align: .75em;
	margin-left: 1px;
	letter-spacing: 0;
}
.product-info .kd-ahorro .kd-cent { font-size: inherit; vertical-align: baseline; margin: 0; }

/* "Ahorras Q150.00 · -19%": texto verde, sin la píldora roja */
.product-info .kd-resumen {
	margin: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid #E5E7EB;
}
.product-info p.kd-ahorro {
	display: block;
	background: none !important;
	color: var(--kd-verde) !important;
	padding: 0; margin: 0;
	font-size: 14px; font-weight: 600;
}
.product-info p.kd-ahorro * { color: inherit !important; background: none !important; }
/* "Quedan X unidades" ya se dice junto al botón */
.product-info .kd-ins--nota { display: none; }

/* Puntos clave del producto */
.product-info .product-short-description {
	padding: 14px 0 4px;
	font-size: 15px; color: #374151;
}
.product-info .product-short-description ul { margin: 0 0 10px 18px; }
.product-info .product-short-description li { margin-bottom: 4px; }

/* Cantidad + botón en una sola fila */
.product-info form.cart:not(.variations_form),
.product-info .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px;
}
.product-info form.cart .quantity { margin: 0; flex: 0 0 auto; }
.product-info form.cart .single_add_to_cart_button {
	flex: 1 1 0; min-width: 0; width: auto; margin: 0;
}

.product-info .yith-wcwl-add-to-wishlist { margin: 12px 0 4px; font-size: 14px; }

/* Categorías y marca ya salen arriba: no repetirlas */
.product-info .product_meta { display: none; }

/* Fotos pequeñas: bordes suaves y la elegida resaltada */
.product-thumbnails a {
	border: 1px solid #E5E7EB !important;
	border-radius: 10px; overflow: hidden;
}
.product-thumbnails img { opacity: .55; transition: opacity .2s; }
.product-thumbnails .is-nav-selected a { border-color: var(--kd-azul) !important; }
.product-thumbnails .is-nav-selected img,
.product-thumbnails a:hover img { opacity: 1; }

@media only screen and (max-width: 849px) {
	.product-info .product-title,
	.product-main h1.product-title { font-size: 21px; }
	.product-info .price-wrapper .price { font-size: 32px; }
	/* En el celular se comparte desde el navegador */
	.product-info .share-icons { display: none; }
}


/* =========================================================
   11. PÁGINA DE PRODUCTO: FOTOS, COMPARTIR Y COMPRA
       Botones lupa / compartir, puntitos, visor de fotos,
       hoja para compartir (los arma functions.php, sección 11)
       y bloques de compra más limpios.
   ========================================================= */

/* ---------- Botones sobre la foto ---------- */
.kd-gal-herr {
	position: absolute; top: 58px; right: 12px; z-index: 5;
	display: flex; flex-direction: column; gap: 10px;
}
.kd-gal-btn {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; min-height: 0;
	margin: 0; padding: 0;
	border: 0; border-radius: 50%;
	background: #fff; color: var(--kd-texto);
	box-shadow: 0 2px 10px rgba(17, 24, 39, .14);
}
.kd-gal-btn:hover { background: #fff; color: var(--kd-azul); }
/* La lupa de Flatsome ya no hace falta */
.product-images .zoom-button { display: none !important; }

/* ---------- Puntitos ---------- */
.kd-gal-puntos { display: none; }

/* ---------- Visor de fotos ---------- */
html.kd-capa-abierta,
html.kd-capa-abierta body { overflow: hidden; }

.kd-visor,
.kd-hoja {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100002;
	background: rgba(17, 24, 39, .55);
	opacity: 0; transition: opacity .2s;
}
.kd-visor.visible,
.kd-hoja.visible { opacity: 1; }
.kd-visor[hidden],
.kd-hoja[hidden] { display: none; }

.kd-visor__caja {
	position: absolute; top: 24px; right: 0; bottom: 0; left: 0;
	max-width: 760px; margin: 0 auto;
	background: #fff;
	border-radius: 24px 24px 0 0;
	display: flex; flex-direction: column;
	padding: 64px 16px 24px;
}
.kd-visor__cerrar,
.kd-hoja__cerrar {
	position: absolute; top: 14px; right: 14px;
	width: 38px; height: 38px; min-height: 0;
	margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: #F1F3F6; color: var(--kd-texto);
}
.kd-visor__foto {
	flex: 1 1 auto; min-height: 0;
	display: flex; align-items: center; justify-content: center;
}
.kd-visor__foto img {
	max-width: 100%; max-height: 100%;
	object-fit: contain;
	touch-action: pan-y;
}
.kd-visor__flecha {
	position: absolute; top: 45%;
	width: 40px; height: 40px; min-height: 0;
	margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: #fff; color: var(--kd-texto);
	box-shadow: 0 2px 10px rgba(17, 24, 39, .14);
}
.kd-visor__flecha--izq { left: 12px; }
.kd-visor__flecha--der { right: 12px; }
.kd-visor__minis {
	display: flex; gap: 10px;
	padding-top: 18px;
	overflow-x: auto; scrollbar-width: none;
}
.kd-visor__minis::-webkit-scrollbar { display: none; }
/* Centradas, pero sin cortar la primera cuando no caben */
.kd-visor__minis > :first-child { margin-left: auto; }
.kd-visor__minis > :last-child { margin-right: auto; }
.kd-visor__minis button {
	flex: 0 0 60px; width: 60px; height: 60px; min-height: 0;
	margin: 0; padding: 4px;
	background: #fff;
	border: 1px solid #E5E7EB; border-radius: 10px;
}
.kd-visor__minis button.activo { border: 2px solid var(--kd-azul); }
.kd-visor__minis img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Hoja para compartir ---------- */
.kd-hoja__caja {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-width: 520px; max-height: 92vh; margin: 0 auto;
	overflow-y: auto;
	background: #fff;
	border-radius: 24px 24px 0 0;
	padding: 0 20px calc(20px + env(safe-area-inset-bottom));
	transform: translateY(30px); transition: transform .2s;
}
.kd-hoja.visible .kd-hoja__caja { transform: none; }
.kd-hoja__cab {
	position: relative;
	padding: 20px 0 16px; margin-bottom: 16px;
	border-bottom: 1px solid #EEF0F3;
}
.kd-hoja__cab strong { font-size: 17px; color: var(--kd-texto); }
.kd-hoja__cab .kd-hoja__cerrar { top: 12px; right: 0; }
.kd-hoja__prod img {
	display: block; width: 100%; max-width: 240px; height: 220px;
	margin: 0 auto 14px;
	object-fit: contain;
}
.kd-hoja__prod h3 {
	margin: 0 0 6px;
	font-size: 18px; line-height: 1.3; font-weight: 700;
	color: var(--kd-texto);
}
.kd-hoja__prod p {
	margin: 0 0 12px;
	font-size: 14px; line-height: 1.45; color: var(--kd-gris-texto);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.kd-hoja__precio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; }
.kd-hoja__off {
	background: var(--kd-oferta); color: #fff;
	font-size: 13px; font-weight: 700;
	padding: 3px 7px; border-radius: 6px;
}
.kd-hoja__precio del,
.kd-hoja__precio del * { color: #9CA3AF; font-size: 14px; }
.kd-hoja__precio strong { flex-basis: 100%; font-size: 26px; font-weight: 800; color: var(--kd-texto); }
.kd-hoja__precio strong * { color: inherit; }
.kd-hoja__precio .kd-cent { font-size: .5em; vertical-align: .75em; }
.kd-hoja__acciones { display: flex; gap: 10px; }
.kd-hoja__acciones > * {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 104px; margin: 0; padding: 12px 6px;
	background: #fff; color: var(--kd-texto);
	border: 1px solid #E5E7EB; border-radius: 18px;
	font-size: 13px; font-weight: 400; line-height: 1.25;
	text-transform: none; letter-spacing: 0; text-align: center;
}
.kd-hoja__acciones > *:hover { border-color: var(--kd-azul); color: var(--kd-texto); }
.kd-hoja__acciones svg { width: 28px; height: 28px; }
.kd-hoja__acciones b { display: block; font-weight: 700; }
.kd-hoja__aviso {
	min-height: 20px; margin: 12px 0 0;
	text-align: center; font-size: 14px; font-weight: 600;
	color: var(--kd-verde);
}

/* ---------- Bloques de compra ---------- */
/* Garantía: una línea sencilla, sin cajita de color */
.product-info .kd-gar-ficha {
	display: flex; align-items: flex-start; gap: 10px;
	margin: 14px 0; padding: 0;
	background: none; border: 0;
	font-size: 0; /* esconde el emoji */
}
.product-info .kd-gar-ficha::before {
	content: ""; flex: 0 0 20px; height: 20px; margin-top: 1px;
	background-color: var(--kd-azul);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6l7-3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6l7-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-info .kd-gar-ficha > span { font-size: 14px; line-height: 1.35; }
.product-info .kd-gar-ficha strong { display: block; font-size: 14px; color: var(--kd-texto); }
.product-info .kd-gar-ficha small { display: block; font-size: 13px; color: var(--kd-gris-texto); }

/* Disponibilidad: tarjeta con borde fino e icono de línea */
.product-info .kd-entrega { margin: 18px 0 14px; }
.product-info .kd-entrega__titulo { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--kd-texto); }
.product-info .kd-entrega__caja {
	display: flex; gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid #E5E7EB; border-radius: 14px;
	box-shadow: none;
}
.product-info .kd-entrega__ico {
	display: block;
	flex: 0 0 24px; width: 24px; height: 24px;
	font-size: 0; /* esconde el emoji */
	background-color: var(--kd-azul);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-info .kd-entrega__txt strong { font-size: 15px; color: var(--kd-texto); }
.product-info .kd-entrega__txt select {
	height: 36px; min-height: 0; margin: 8px 0;
	padding: 0 30px 0 10px;
	font-size: 14px;
	border: 1px solid #E5E7EB; border-radius: 10px;
	box-shadow: none;
}
.product-info .kd-entrega__fecha { font-size: 14px; font-weight: 600; color: var(--kd-verde); }
.product-info .kd-entrega__nota { margin: 8px 0 0; font-size: 12px; color: var(--kd-gris-texto); }

/* Botón de compra: plano, ancho y fácil de tocar */
.product-info .single_add_to_cart_button {
	min-height: 52px;
	border-radius: 14px !important;
	box-shadow: none;
	font-size: 17px;
}
.product-info .quantity .minus,
.product-info .quantity .plus,
.product-info .quantity input[type=number] {
	height: 52px; min-height: 0;
	border-color: #E5E7EB; box-shadow: none;
}
.product-info .quantity .minus { border-radius: 14px 0 0 14px; }
.product-info .quantity .plus { border-radius: 0 14px 14px 0; }

/* Lista de deseos: enlace pequeño y gris */
.product-info .yith-wcwl-add-to-wishlist { margin: 12px 0 8px; }
.product-info .yith-wcwl-add-to-wishlist a,
.product-info .yith-wcwl-add-to-wishlist .feedback {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; color: var(--kd-gris-texto);
}
.product-info .yith-wcwl-add-to-wishlist svg { width: 18px; height: 18px; }

/* Ayuda por WhatsApp: tarjeta sencilla */
.product-info .kd-ayuda {
	border: 1px solid #E5E7EB; border-radius: 14px;
	background: #fff; box-shadow: none;
}

/* Envío, pago y factura: iconos de línea en vez de emojis */
.product-info .kd-garantias {
	margin: 14px 0; padding: 4px 14px;
	border: 1px solid #E5E7EB; border-radius: 14px;
	background: #fff; box-shadow: none;
}
.product-info .kd-garantias li { padding: 12px 0; margin: 0; }
.product-info .kd-garantias li + li { border-top: 1px solid #F1F3F6; }
.product-info .kd-garantias__icono {
	display: block;
	flex: 0 0 22px; width: 22px; height: 22px;
	font-size: 0; /* esconde el emoji */
	background-color: var(--kd-azul);
	-webkit-mask: var(--kd-ico) center / contain no-repeat;
	mask: var(--kd-ico) center / contain no-repeat;
}
.product-info .kd-garantias li:nth-child(1) .kd-garantias__icono { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.product-info .kd-garantias li:nth-child(2) .kd-garantias__icono { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 9v.01M18 15v.01'/%3E%3C/svg%3E"); }
.product-info .kd-garantias li:nth-child(3) .kd-garantias__icono { --kd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2V3z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }

/* "Factura con NIT" (tercera línea de la lista del plugin) no se muestra */
.product-info .kd-garantias li:nth-child(3) { display: none; }

/* Compartir de Flatsome: ya está el botón sobre la foto */
.product-info .share-icons { display: none; }

@media only screen and (max-width: 849px) {
	/* Foto vertical y puntitos en lugar de las fotos pequeñas */
	.product-gallery-slider .woocommerce-product-gallery__image img {
		aspect-ratio: 4 / 5; width: 100%; height: auto;
		object-fit: cover;
	}
	.product-gallery .product-thumbnails { display: none !important; }
	.kd-gal-puntos {
		display: flex; justify-content: center; gap: 8px;
		margin: 10px 0 4px;
	}
	.kd-gal-puntos button {
		width: 8px; height: 8px; min-height: 0; min-width: 0;
		margin: 0; padding: 0;
		border: 0; border-radius: 99px;
		background: #D1D5DB;
		transition: width .2s, background .2s;
	}
	.kd-gal-puntos button.activo { width: 22px; background: var(--kd-azul); }

	.kd-visor__caja { top: 0; border-radius: 0; padding-top: 60px; }
	.kd-visor__flecha { display: none; }
}
