.container-Productos .card-ProductosOferta {
	position: relative;
}

.container-Productos .card-ProductosOferta .btn-agregar-carrito-mini {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 15;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	color: #1e126d;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}

.container-Productos .card-ProductosOferta:hover .btn-agregar-carrito-mini {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.container-Productos .card-ProductosOferta .btn-agregar-carrito-mini:hover {
	background: #28a745;
	color: #ffffff;
}

.container-Productos .card-ProductosOferta .btn-agregar-carrito-mini.agregado {
	background: #28a745;
	color: #ffffff;
	transform: scale(1.15);
}

.container-Productos .card-ProductosOferta .btn-quick-view {
	position: absolute;
	top: 50px;
	right: 8px;
	z-index: 15;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	color: #1e126d;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}

.container-Productos .card-ProductosOferta:hover .btn-quick-view {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.container-Productos .card-ProductosOferta .btn-quick-view:hover {
	background: #1e126d;
	color: #ffffff;
}

/* Cluster de favoritos + carrito visible junto al logo en modo móvil */
.mobile-header-icons {
	display: none;
	position: relative;
	align-items: center;
	gap: 10px;
}

@media (max-width: 991.98px) {
	.navbar.bg-dark.bg-light {
		background: #000000 !important;
	}

	.navbar {
		flex-wrap: wrap;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.navbar-brand {
		order: 1;
		margin-left: 1rem;
	}

	.mobile-header-icons {
		display: flex !important;
		order: 2;
		margin-right: 1rem;
	}

	/* El hamburger cae a su propia fila, separado del logo/carrito, de extremo a extremo */
	.navbar-toggler {
		order: 3;
		display: flex !important;
		align-items: center;
		justify-content: center;
		flex: 0 0 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		background: #490237 !important;
		border: none !important;
		border-radius: 0 !important;
		margin: 8px 0 -0.5rem 0 !important;
		padding: 10px 0 !important;
	}

	.navbar-light .navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	.navbar-collapse {
		order: 4;
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Ya están arriba junto al logo (.mobile-header-icons): no repetir dentro del menú */
	.header-acciones .buscador-productos,
	.header-acciones .icono-favoritos,
	.header-acciones .pill-carrito {
		display: none;
	}
}

/* Barra de acciones del header: buscador + favoritos + carrito */
.header-acciones {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
}

/* Mini-carrito flotante (móvil y PC) */
.mini-carrito-flotante {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	width: 260px;
	background: #1e126d;
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	padding: 16px;
	z-index: 2000;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.mini-carrito-flotante.show {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.mini-carrito-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	opacity: .8;
	margin-bottom: 12px;
}

.mini-carrito-cerrar {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.mini-carrito-items {
	max-height: 260px;
	overflow-y: auto;
}

.mini-carrito-vacio {
	text-align: center;
	font-size: 13px;
	opacity: .8;
	padding: 16px 0;
	margin: 0;
}

.mini-carrito-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-carrito-item img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: #fff;
	flex-shrink: 0;
}

.mini-carrito-nombre {
	margin: 0 0 4px 0;
	font-size: 13px;
	font-weight: 600;
}

.mini-carrito-cantidad {
	margin: 0;
	font-size: 12px;
	opacity: .8;
}

.mini-carrito-subtotal {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	font-size: 13px;
	font-weight: 600;
}

.mini-carrito-acciones {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mini-carrito-acciones a {
	text-align: center;
	padding: 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
}

.mini-carrito-acciones .btn-ver-carrito {
	background: transparent;
	border: 1px solid #fff;
	color: #fff;
}

.mini-carrito-acciones .btn-ver-carrito:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.mini-carrito-acciones .btn-finalizar {
	background: #dc3545;
	color: #fff;
	border: 1px solid #dc3545;
}

.mini-carrito-acciones .btn-finalizar:hover {
	background: #c82333;
	border-color: #c82333;
	color: #fff;
}

.buscador-productos {
	display: flex;
	align-items: center;
	border: 2px solid #1e126d;
	border-radius: 50px;
	overflow: hidden;
	background: #fff;
}

.buscador-productos input[type="search"] {
	border: none;
	outline: none;
	padding: 6px 15px;
	min-width: 160px;
	background: transparent;
}

.buscador-productos .btn-buscar {
	background: #1e126d;
	color: #fff;
	border: none;
	padding: 8px 16px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.buscador-productos .btn-buscar:hover {
	background: #28a745;
}

.icono-favoritos {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border: 2px solid #1e126d;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1e126d;
	background: #fff;
	transition: all 0.2s ease;
}

.icono-favoritos:hover {
	color: #fff;
	background: #28a745;
	border-color: #28a745;
	text-decoration: none;
}

.pill-carrito {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 2px solid #1e126d;
	border-radius: 50px;
	padding: 4px 16px 4px 4px;
	background: #fff;
	color: #1e126d;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.pill-carrito:hover {
	color: #fff;
	background: #1e126d;
	text-decoration: none;
}

.pill-carrito-icono {
	position: relative;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	background: #1e126d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.pill-carrito:hover .pill-carrito-icono {
	background: #28a745;
}

.pill-carrito .cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #dc3545;
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
}

.pill-carrito-total {
	font-weight: 600;
	font-size: 0.9rem;
}

/* Página carrito.php */
.carrito-page {
	background: #f4f4f6;
	padding-bottom: 40px;
}

.carrito-titulo-pagina {
	font-size: 22px;
	font-weight: bold;
	color: #1e126d;
	text-transform: uppercase;
	margin: 0 0 24px 0;
}

.carrito-vacio {
	text-align: center;
	padding: 60px 0;
}

.carrito-card {
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 24px;
	margin-bottom: 24px;
}

.carrito-tabla-nueva {
	width: 100%;
	border-collapse: collapse;
}

.carrito-tabla-nueva thead th {
	background: #f7f7f7;
	text-align: left;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #666666;
	padding: 12px 10px;
	border-bottom: 1px solid #ececec;
}

.carrito-tabla-nueva tbody td {
	padding: 14px 10px;
	border-bottom: 1px solid #ececec;
	vertical-align: middle;
	font-size: 14px;
	color: #333333;
}

.carrito-tabla-nueva .col-quitar {
	width: 36px;
	text-align: center;
}

.btn-quitar-x {
	border: none;
	background: none;
	color: #999999;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.btn-quitar-x:hover {
	color: #dc3545;
}

.carrito-tabla-nueva .col-imagen img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ececec;
}

.carrito-tabla-nueva .col-cantidad input[type="number"] {
	width: 70px;
	padding: 6px 8px;
	border: 1px solid #cccccc;
	border-radius: 4px;
}

.carrito-acciones-fila {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	margin-top: 8px;
	border-top: 1px solid #ececec;
}

.carrito-cupon {
	display: flex;
	gap: 8px;
}

.carrito-cupon input[type="text"] {
	padding: 10px 14px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	min-width: 180px;
}

.btn-cupon {
	background: #1e126d;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 0 18px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
}

.carrito-acciones-derecha {
	display: flex;
	align-items: center;
	gap: 18px;
}

.btn-vaciar-link {
	border: none;
	background: none;
	color: #999999;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.btn-vaciar-link:hover {
	color: #dc3545;
}

.btn-actualizar-carrito {
	background: #c9c2dd;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
}

.btn-actualizar-carrito:hover {
	background: #1e126d;
}

.carrito-totales-titulo {
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #222222;
	margin: 0 0 16px 0;
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.carrito-totales-tabla {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.carrito-totales-tabla td {
	padding: 12px 0;
	border-bottom: 1px solid #ececec;
	font-size: 14px;
	color: #444444;
}

.carrito-totales-tabla tr.fila-total td {
	font-size: 17px;
	font-weight: bold;
	color: #222222;
}

.btn-finalizar-compra {
	display: block;
	width: 100%;
	text-align: center;
	background: #1e126d;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 16px;
	font-size: 14px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
}

.btn-finalizar-compra:hover {
	background: #28a745;
	color: #ffffff;
	text-decoration: none;
}

/* Resumen de pedido (email + confirmacion.php) */
.resumen-pedido {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	padding: 24px;
	font-family: Arial, sans-serif;
	color: #333;
}

.resumen-pedido table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.resumen-pedido table th {
	text-align: left;
	border-bottom: 2px solid #ececec;
	padding: 8px;
}

.resumen-pedido table td {
	border-bottom: 1px solid #ececec;
	padding: 8px;
	vertical-align: middle;
}

.resumen-pedido table img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
}

.resumen-pedido .total-row td {
	font-weight: bold;
	border-top: 2px solid #333;
	border-bottom: none;
}
