:root {
	--pos-category-border: #e5e7eb;
	--pos-category-muted: #64748b;
	--pos-category-ink: #111827;
	--pos-category-soft: #f8fafc;
	--pos-category-brand: #0f766e;
	--pos-category-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html[dir="rtl"] .shop-by-category-content,
body[dir="rtl"] .shop-by-category-content,
.rtl .shop-by-category-content {
	direction: rtl;
}

.web-header,
.navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pos-category-border);
	box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.shop-by-category-content {
	padding-bottom: 1rem;
}

.category-slideshow {
	margin-bottom: 1rem;
}

.category-tabs {
	margin-top: 0.5rem;
}

.category-tabs .nav,
.category-tabs .nav-tabs,
.category-tabs .tab-list {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	padding-bottom: 0.35rem;
	border: 0;
}

.category-tabs .nav-link,
.category-tabs .tab-link,
.category-tabs button {
	white-space: nowrap;
	border-radius: 999px !important;
	border: 1px solid var(--pos-category-border) !important;
	background: #fff;
	color: var(--pos-category-muted);
	font-size: 0.85rem;
}

.category-tabs .nav-link.active,
.category-tabs .tab-link.active,
.category-tabs button.active {
	border-color: rgba(15, 118, 110, 0.25) !important;
	background: rgba(15, 118, 110, 0.08);
	color: var(--pos-category-brand);
	font-weight: 700;
}

.pos-category-grid {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.65rem;
	align-items: stretch;
	margin: 0;
}

.category-card {
	width: auto !important;
	height: 168px !important;
	min-height: 168px;
	margin: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(229, 231, 235, 0.9) !important;
	border-radius: 8px !important;
	background: #fff;
	box-shadow: var(--pos-category-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover {
	transform: translateY(-2px);
	border-color: rgba(15, 118, 110, 0.28) !important;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.category-card .card-img-top {
	width: 100%;
	height: 104px !important;
	object-fit: contain;
	padding: 0.55rem;
	background: var(--pos-category-soft);
}

.category-card .placeholder-div {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	background: var(--pos-category-soft);
}

.category-card .placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.1);
	color: var(--pos-category-brand);
	font-weight: 800;
}

.category-card .card-body {
	display: -webkit-box;
	height: 64px;
	padding: 0.55rem !important;
	overflow: hidden;
	color: var(--pos-category-ink) !important;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (max-width: 1199.98px) {
	.pos-category-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.pos-category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.pos-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.category-card {
		height: 148px !important;
		min-height: 148px;
	}

	.category-card .card-img-top,
	.category-card .placeholder-div {
		height: 90px !important;
	}

	.category-card .card-body {
		height: 58px;
		font-size: 0.8rem;
	}
}

@media (max-width: 479.98px) {
	.pos-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}