a, h1, h2, h3, p {
	font-family: Arial, Helvetica, sans-serif;
}

/* ── HEADER / MENU ──────────────────────────────────────── */
.headerf {
	width: 100%;
	margin-top: 10px;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-around;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	position: relative;
}
.a-menu {
	padding: 10px;
	text-transform: uppercase;
	text-decoration: none;
	display: flex;
	align-items: center;
	letter-spacing: 3px;
}
.categoriasa {
	padding: 5px 10px;
}
.marcadestock {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.absolutf {
	width: 100%;
	position: absolute;
	top: 50px;
	background: white;
	z-index: 99;
	display: flex;
	flex-wrap: wrap;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	justify-content: center;
}
.absolutf a {
	padding: 15px 20px;
}
.categoriasmobile {
	display: flex;
	flex-direction: column;
	overflow: auto;
}
.categoriasmobile a {
	padding: 15px;
	font-size: 20px;
}
.categoriaf2 {
	padding: 15px;
	font-size: 20px;
}
.subcategorias {
	display: flex;
	width: 100%;
	flex-direction: column;
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	text-align: center;
	background: white;
}
.atrassub {
	display: flex;
	justify-content: flex-end;
	padding-right: 20px;
}

/* ── FILTROS ─────────────────────────────────────────────── */
.botonfiltros {
	display: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.barravertical {
	height: 12px;
	border-right: 1px solid black;
	margin-left: 5px;
	margin-right: 5px;
}
.footer1 {
	width: 33.33%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer2 {
	width: 33.33%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.footer3 {
	width: 33.33%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ── GENERAL ─────────────────────────────────────────────── */
.colorblack {
	color: black !important;
}
.divdetalleinfo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.botonfran {
	padding: 5px;
	color: white;
	width: 120px;
	background: black;
	border: 1px solid black;
}

/* ── CARRITO: oculto por defecto (solo aparece en mobile) ── */
.carritoabsoluto {
	display: none;
}
.cantidadcarritoa {
	display: none;
}

/* ── BARRA MOBILE (buscar + salir) ───────────────────────── */
/* Oculta en desktop, visible solo en mobile via visible-xs de Bootstrap */
.navbar-mobile-bar {
    display: flex;
    border-top: none;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
}
.mobile-search-form {
	flex: 1;
}
.mobile-search-wrap {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 3px;
	overflow: hidden;
}
.mobile-search-wrap input[type="text"] {
	flex: 1;
	border: none;
	padding: 6px 8px;
	font-size: 13px;
	outline: none;
}
.mobile-search-wrap button {
	background: #000;
	color: #fff;
	border: none;
	padding: 7px 10px;
	cursor: pointer;
}
.mobile-logout {
	white-space: nowrap;
	font-size: 12px;
	color: #333;
	text-decoration: none;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
}
.mobile-logout:hover {
	background: #f5f5f5;
}

/* ════════════════════════════════════════════════════════════
   TABLET: ocultar menú horizontal de categorías
   ════════════════════════════════════════════════════════════ */
@media (max-width: 994px) {
	.headerf {
		display: none;
	}
	.botonfiltros {
		width: 100%;
		align-items: center;
		display: flex;
		justify-content: flex-end; /* filtros a la derecha */
		margin-bottom: 10px;
	}
	.navbar-search {
		display: none !important;
	}
	.mobile-filtros-btn {
		cursor: pointer;
		font-size: 13px;
		color: #333;
		display: inline-flex;
		align-items: center;
		gap: 5px;
		padding: 4px 8px;
	}
	.mobile-filtros-btn i {
		font-size: 14px;
	}
}

/* ════════════════════════════════════════════════════════════
   MOBILE (max 766px): todos los ajustes mobile juntos
   ════════════════════════════════════════════════════════════ */
@media (max-width: 766px) {

	/* ── Navbar ── */
	.navbar .background {
		height: auto !important;
		padding: 8px 10px !important;
	}
	.navbar-secondary-menu {
		display: none !important;
	}
	.navbar-logo {
		display: block;
		text-align: center;
		float: none !important;
		margin: 0 auto;
		position: relative; /* para el badge del carrito */
	}
	.navbar-logo img {
		max-height: 55px;
		width: auto;
	}
	/* Ocultar menú secundario desktop y búsqueda desktop */
	.navbar-secondary-menu,
	.navbar-search {
		display: none !important;
	}

	/* ── Barra mobile: mostrar ── */
	.navbar-mobile-bar {
		display: flex;
	}

	/* ── Carrito badge sobre el logo ── */
	.carritoabsoluto {
		display: block;
		position: absolute;
		top: 5px;
		right: -5px;
	}
	.cantidadcarritoa {
		display: block;
		position: absolute;
		right: -8px;
		top: -8px;
		width: 18px;
		height: 18px;
		line-height: 18px;
		text-align: center;
		border-radius: 50%;
		font-size: 10px;
		color: #fff;
		background-color: #D10024;
	}
	/* Ocultar ícono de carrito fa (solo mostrar badge) */
	.carritoabsoluto .fa-shopping-cart {
		display: none;
	}

	/* ── Footer mobile ── */
	.footer-navbar .row {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	.footer1,
	.footer2,
	.footer3 {
		width: 100% !important;
		align-items: flex-start;
		padding: 12px 20px;
		border-bottom: 1px solid #ddd;
	}
	.footer3 {
		display: none !important;
	}
	.footer1 h3,
	.footer2 h3 {
		font-size: 13px;
		margin-bottom: 8px;
		letter-spacing: 1px;
	}
	.footer1 .menu {
		padding: 0;
		list-style: none;
		margin: 0;
	}
	.footer1 .menu li {
		font-size: 12px;
		margin-bottom: 6px;
		line-height: 1.4;
	}
	.footer2 > div {
		justify-content: flex-start !important;
	}
	.footer2 a {
		font-size: 22px !important;
	}
	.footer-bottom-block .col-sm-5 {
		justify-content: center !important;
		font-size: 11px;
		padding: 10px 0;
	}

	/* ── WhatsApp flotante: ocultar horario ── */
	.redes-flotantes span {
		display: none !important;
	}

	/* ── DETALLE: reordenar imagen / miniaturas / tabla ── */
	.product-view.row {
		display: flex !important;
		flex-direction: column;
	}
	/* 1° imagen principal */
	.product-view .col-sm-5[name="column2"] {
		order: 1;
		width: 100% !important;
	}
	/* 2° miniaturas en carrusel horizontal */
	.product-view .col-sm-2 {
		order: 2;
		width: 100% !important;
	}
	.product-view .col-sm-2 .scrollfotos {
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		white-space: nowrap;
		float: none;
		width: 100%;
	}
	.product-view .col-sm-2 .scrollfotos ul {
		display: inline-flex;
		flex-direction: row;
		padding: 6px 0;
	}
	.product-view .col-sm-2 .scrollfotos ul li {
		display: inline-block;
		margin-right: 6px;
		white-space: normal;
		width: 70px;
	}
	.product-view .col-sm-2 .scrollfotos ul li img {
		width: 70px;
		height: auto;
	}
	/* 3° tabla de colores/talles */
	.product-view .col-sm-5:not([name="column2"]) {
		order: 3;
		width: 100% !important;
	}
	/* ── BANNER mobile: completo con cover ── */
	.fullwidthbanner-container {
		max-height: 180px !important;
		overflow: hidden;
	}

	.fullwidthbanner-container img {
		width: 100% !important;
		height: 180px !important;
		object-fit: cover;
		object-position: center center;
	}

	.fullwidthbanner {
		height: 180px !important;
	}

	/* Ocultar controles del slider que no tienen sentido en mobile */
	.tp-leftarrow,
	.tp-rightarrow {
		display: none !important;
	}
}