/* =========================================================================
   FMarket — Shop / Category / Single Product overrides
   ----------------------------------------------------------------------
   Tô màu icon + tinh chỉnh thẩm mỹ cho các template WooCommerce.
   Enqueue chỉ trên shop/category pages (xem functions.php).
   ========================================================================= */

:root {
	--fm-cart-yellow: #ffd166;
	--fm-cart-orange: #ffa94d;
	--fm-trust-1: #4ecdc4;      /* delivery — teal */
	--fm-trust-2: #6ab04c;      /* security — green */
	--fm-trust-3: #ff8a5b;      /* guarantee — coral */
	--fm-trust-4: #c8a2ff;      /* purple — bonus */
	--fm-deep: #0d1b3d;
}

/* ── Trust factors section (above footer) ─────────────────────────── */
.trust-factor-section {
	padding: 50px 20px;
	background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}
.trust-factor-section .factor-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}
@media (max-width: 768px) {
	.trust-factor-section .factor-wrapper { grid-template-columns: 1fr; gap: 24px; }
}

.trust-factor-section .factor-box {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e8eaf0;
	box-shadow: 0 4px 18px rgba(13, 27, 61, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.trust-factor-section .factor-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(13, 27, 61, 0.1);
	border-color: transparent;
}

.trust-factor-section .factor-icon {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	font-size: 28px;
	transition: transform 0.35s ease;
}
.trust-factor-section .factor-box:hover .factor-icon {
	transform: scale(1.1) rotate(-6deg);
}

/* Pick colors per box position (theme order: delivery, payment, guarantee) */
.trust-factor-section .factor-box:nth-child(1) .factor-icon {
	color: var(--fm-trust-1);
	background: rgba(78, 205, 196, 0.13);
}
.trust-factor-section .factor-box:nth-child(2) .factor-icon {
	color: var(--fm-trust-2);
	background: rgba(106, 176, 76, 0.13);
}
.trust-factor-section .factor-box:nth-child(3) .factor-icon {
	color: var(--fm-trust-3);
	background: rgba(255, 138, 91, 0.13);
}
.trust-factor-section .factor-box:nth-child(4) .factor-icon {
	color: var(--fm-trust-4);
	background: rgba(200, 162, 255, 0.13);
}

.trust-factor-section .factor-info {
	font-size: 15px;
	font-weight: 600;
	color: var(--fm-deep);
	line-height: 1.4;
}

/* ── Header cart icon ─────────────────────────────────────────────── */
.dokani-menu-cart .flaticon-commerce-1 {
	color: var(--fm-cart-orange);
	transition: color 0.2s ease, transform 0.2s ease;
}
.dokani-menu-cart:hover .flaticon-commerce-1 {
	color: var(--fm-cart-yellow);
	transform: scale(1.1);
}

/* ── Add-to-cart button (loop cards) ─────────────────────────────── */
.products .cat.btn.add_to_cart_button,
.product .cat.btn.add_to_cart_button {
	background: linear-gradient(135deg, var(--fm-cart-yellow), var(--fm-cart-orange));
	color: var(--fm-deep);
	border: 0;
	border-radius: 999px;
	padding: 10px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 12px rgba(255, 169, 77, 0.25);
}
.products .cat.btn.add_to_cart_button:hover,
.product .cat.btn.add_to_cart_button:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(255, 169, 77, 0.4);
}
.products .cat.btn.add_to_cart_button .flaticon,
.product .cat.btn.add_to_cart_button .flaticon {
	color: var(--fm-deep);
	font-size: 16px;
}

/* ── Page title (woocommerce-products-header) — chỉ còn 1 sau fix ── */
.woocommerce-products-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f2f7;
}
.woocommerce-products-header__title.page-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--fm-deep);
	margin: 0 0 6px;
	position: relative;
	display: inline-block;
}
.woocommerce-products-header__title.page-title::after {
	content: "";
	display: block;
	width: 50px;
	height: 3px;
	margin-top: 8px;
	background: linear-gradient(90deg, var(--fm-cart-yellow), var(--fm-cart-orange));
	border-radius: 2px;
}

/* ── Sidebar category menu (dokani) — subtle hover accent ──────── */
.dokani-category-menu .parent-cat-wrap > a {
	transition: color 0.2s ease, padding-left 0.2s ease;
	position: relative;
	padding-left: 18px;
}
.dokani-category-menu .parent-cat-wrap > a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fm-cart-orange);
	transform: translateY(-50%);
	opacity: 0.4;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.dokani-category-menu .parent-cat-wrap > a:hover {
	color: var(--fm-cart-orange);
	padding-left: 22px;
}
.dokani-category-menu .parent-cat-wrap > a:hover::before {
	opacity: 1;
	transform: translateY(-50%) scale(1.3);
}

/* ── View switcher (list/grid) icons ─────────────────────────────── */
.dokani-products-view button {
	transition: background 0.2s ease, color 0.2s ease;
}
.dokani-products-view button.active {
	background: var(--fm-cart-orange);
	color: #ffffff;
}
.dokani-products-view button:not(.active):hover {
	color: var(--fm-cart-orange);
}
