/* ===================================================================
   TIENDA ORIGINAL TOOLS - Estilos Personalizados
   =================================================================== */

/* ===== ADD TO CART FEEDBACK ===== */
.addtocart-btn-wrapper .addtocart-btn.added {
	background-color: #28a745 !important;
	color: #fff !important;
}

.addtocart-btn.disabled {
	opacity: 0.4;
	pointer-events: none;
}

.cart-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #28a745;
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	z-index: 9999;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.mini-products-list .btn-remove {
	cursor: pointer;
}

/* ===== SIDEBAR FILTROS ===== */
#shopSidebar .nav-list .nav-link {
	padding: 5px 0;
	font-size: 0.9rem;
	color: #777;
	transition: color 0.2s;
}

#shopSidebar .nav-list .nav-link:hover {
	color: #212529;
}

#shopSidebar .nav-list .nav-link.active {
	font-weight: 700;
	color: #0088cc;
}

#shopSidebar .nav-list .nav-link .text-muted {
	font-weight: 400;
	font-size: 0.8rem;
}

/* ===== FILTROS ACTIVOS ===== */
#activeFiltersList .badge {
	font-size: 0.8rem;
	font-weight: 500;
}

#activeFiltersList .badge a {
	text-decoration: none;
}

/* ===== BARRA DE ORDENAMIENTO ===== */
#sortProducts {
	min-width: 200px;
}

/* ===== PRODUCTO - IMAGENES UNIFORMES ===== */
.product-thumb-info-image {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8f8f8;
}

.product-thumb-info-image img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}

/* ===== VIEW PRODUCT BUTTON (reemplaza .quick-view para evitar conflicto con Porto) ===== */
.view-product-btn {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 136, 204, 0.9);
	color: #fff !important;
	text-align: center;
	padding: 8px;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(100%);
	z-index: 2;
	text-decoration: none !important;
}

.product-thumb-info:hover .view-product-btn {
	opacity: 1;
	transform: translateY(0);
}

/* ===== PRODUCTO DETALLE - GALERIA THUMBNAILS ===== */
#productoThumbnails .producto-thumb {
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	padding: 4px;
	background: #f8f8f8;
	cursor: pointer;
	transition: border-color 0.2s;
}

#productoThumbnails .producto-thumb:hover {
	border-color: #999;
}

#productoThumbnails .producto-thumb.active {
	border-color: #0088cc;
}

#productoThumbnails .producto-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ===== PRODUCT ITEM TRANSITION ===== */
.product-item {
	transition: opacity 0.3s ease;
}

/* ===== MEJORAS MOBILE ===== */
@media (max-width: 991px) {
	#shopSidebar {
		margin-bottom: 30px;
		padding-bottom: 20px;
		border-bottom: 1px solid #eee;
	}
}

@media (max-width: 767px) {
	/* ===== HEADER ESTILO AMAZON MOBILE ===== */

	/* Fila 0: Ocultar barra superior (WhatsApp/Envio) */
	.header-top {
		display: none !important;
	}

	/* Fila 1: Logo + Carrito - compacto */
	#header .header-row.py-2 {
		padding: 0.3rem 0 !important;
	}

	#header .header-logo {
		flex: 0 0 auto !important;
		width: auto !important;
	}

	#header .header-logo img {
		width: 60px !important;
		height: auto !important;
	}

	/* Carrito compacto alineado a la derecha */
	.header-nav-features-cart-big a img {
		height: 24px !important;
	}

	/* Fila 2: Busqueda full-width debajo del logo */
	#header .header-container .header-row > .header-column > .header-row {
		flex-wrap: wrap !important;
	}

	#header .header-nav-features-no-border {
		display: flex !important;
		order: 10 !important;
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 4px 0 0 0 !important;
	}

	#header .header-nav-features-no-border .header-nav-feature {
		padding: 0 !important;
		width: 100%;
	}

	/* Mostrar siempre el input de busqueda (no toggle) */
	#header .mobile-search-toggle-btn {
		display: none !important;
	}

	#header .search-form-wrapper {
		display: flex !important;
	}

	#header .search-form-wrapper .form-control {
		font-size: 0.85rem !important;
		padding: 6px 10px !important;
		height: 36px !important;
	}

	#header .search-form-wrapper .btn {
		padding: 6px 10px !important;
		height: 36px !important;
	}

	/* Fila 3: Nav bar compacta */
	.header-nav-bar {
		padding: 0 !important;
	}

	.header-nav-bar .header-row {
		min-height: auto !important;
	}

	.header-extra-info-icon a {
		font-size: 0.75rem !important;
	}

	/* Contenido principal compacto */
	.main.shop .font-weight-semi-bold.text-5 {
		font-size: 1.1rem !important;
	}

	.main.shop.pt-4 {
		padding-top: 0.5rem !important;
	}

	.product-thumb-info .addtocart-btn-wrapper .addtocart-btn {
		opacity: 1 !important;
		transform: translate3d(0, 0, 0) !important;
	}

	.view-product-btn {
		opacity: 1;
		transform: translateY(0);
		position: relative;
		display: block;
		text-align: center;
		margin-top: -1px;
	}

	.shop .quantity .minus,
	.shop .quantity .plus {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.shop .quantity .qty {
		height: 40px;
		font-size: 1.1em;
	}

	#btnWhatsApp {
		font-size: 1rem !important;
		padding: 15px !important;
	}
}

@media (max-width: 575px) {
	.cart-toast {
		left: 20px;
		right: 20px;
		bottom: 20px;
		text-align: center;
	}
}
